diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-12-06 22:45:45 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-12-06 22:45:45 +0000 |
commit | b96a0dba90780950ed7db4882349d99981714216 (patch) | |
tree | 58b7e9525c24276f012e9fd7fed81886975fc554 /lib | |
parent | 30dfc00a54a19871c049455aec1cdf6df80de8f8 (diff) |
Gisle Vanem's fix for better info messages when failing to connect using
the multi interface
Diffstat (limited to 'lib')
-rw-r--r-- | lib/connect.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/connect.c b/lib/connect.c index e982ddfaf..141d9593f 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -523,10 +523,18 @@ CURLcode Curl_is_connected(struct connectdata *conn, } } else if(WAITCONN_TIMEOUT != rc) { + int error = 0; + /* nope, not connected */ + if (WAITCONN_FDSET_ERROR == rc) { + verifyconnect(sockfd, &error); + infof(data, "%s\n",Curl_strerror(conn,error)); + } + else infof(data, "Connection failed\n"); + if(trynextip(conn, sockindex, connected)) { - int error = Curl_ourerrno(); + error = Curl_ourerrno(); failf(data, "Failed connect to %s:%d; %s", conn->host.name, conn->port, Curl_strerror(conn,error)); code = CURLE_COULDNT_CONNECT; |