aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-04-10 14:20:24 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-04-10 14:20:24 +0000
commit308ae5cbf29921e27eed764416d1ae5379d3e47f (patch)
treec2e5f9a09520e8f4e257f1ee5901c7a761159ab8
parent1cd5cdfccba2fada71237a710a6815b89f5f5e51 (diff)
added info in to failf() lines and added a infof() call just before the
connect() so that it tells to which host and what port it is about to attempt the connection
-rw-r--r--lib/connect.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 66035dc3f..ee52b6764 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -385,6 +385,9 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */
}
}
+ infof(data, "About to connect() to %s:%d\n",
+ data->change.proxy?conn->proxyhost:conn->hostname, port);
+
#ifdef ENABLE_IPV6
/*
* Connecting with IPv6 support is so much easier and cleanly done
@@ -424,7 +427,7 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */
case ECONNREFUSED: /* no one listening */
default:
/* unknown error, fallthrough and try another address! */
- failf(data, "Failed to connect");
+ failf(data, "Failed to connect: %d", error);
break;
}
}
@@ -529,7 +532,8 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */
break;
default:
/* unknown error, fallthrough and try another address! */
- failf(data, "Failed to connect to IP number %d", aliasindex+1);
+ failf(data, "Failed to connect to IP number %d: %d",
+ aliasindex+1, error);
break;
}
}