aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-07-13 20:17:35 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-07-13 20:17:35 +0000
commit46c699c483f3e453fa6b0e8f69846ecce95a1a0f (patch)
treeaa01760fa21c8d133dd28b87fa261ce090678371 /lib
parentf7d6e147f1a64269e0e68b8e6c7d3a92eb6fa726 (diff)
Colin Hogben filed bug report #1750274
(http://curl.haxx.se/bug/view.cgi?id=1750274) and submitted a patch for the case where libcurl did a connect attempt to a non-listening port and didn't provide a human readable error string back.
Diffstat (limited to 'lib')
-rw-r--r--lib/connect.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 65b2878b3..d608e1e2e 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -577,6 +577,8 @@ CURLcode Curl_is_connected(struct connectdata *conn,
data->state.os_errno = error;
infof(data, "Connection failed\n");
if(trynextip(conn, sockindex, connected)) {
+ failf(data, "Failed connect to %s:%d; %s",
+ conn->host.name, conn->port, Curl_strerror(conn, error));
code = CURLE_COULDNT_CONNECT;
}
}
@@ -596,7 +598,7 @@ CURLcode Curl_is_connected(struct connectdata *conn,
error = SOCKERRNO;
data->state.os_errno = error;
failf(data, "Failed connect to %s:%d; %s",
- conn->host.name, conn->port, Curl_strerror(conn,error));
+ conn->host.name, conn->port, Curl_strerror(conn, error));
code = CURLE_COULDNT_CONNECT;
}
}