aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-02-22 23:51:17 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-02-22 23:51:17 +0000
commit4af55809e4befb59bc341f5e6803aa80634c8fdb (patch)
tree7faf5d4c7c2ea27f360c88a31a996599a7f68bdf
parent9c63fcf21002256c338f2fe8dde34a5dc43d9a4e (diff)
added some infof() calls for persistant info
-rw-r--r--lib/url.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/url.c b/lib/url.c
index 2092b213b..904e90bf3 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -546,12 +546,10 @@ CURLcode curl_disconnect(CURLconnect *c_connect)
#endif /* USE_SSLEAY */
/* close possibly still open sockets */
- if(-1 != conn->secondarysocket) {
+ if(-1 != conn->secondarysocket)
sclose(conn->secondarysocket);
- }
- if(-1 != conn->firstsocket) {
+ if(-1 != conn->firstsocket)
sclose(conn->firstsocket);
- }
if(conn->allocptr.proxyuserpwd)
free(conn->allocptr.proxyuserpwd);
@@ -669,9 +667,11 @@ ConnectionStore(struct UrlData *data,
if(!data->connects[i])
break;
}
- if(i == data->numconnects)
+ if(i == data->numconnects) {
/* there was no room available, kill one */
i = ConnectionKillOne(data);
+ infof(data, "Connection (#%d) was killed to make room\n", i);
+ }
data->connects[i] = conn; /* fill in this */
conn->connectindex = i; /* make the child know where the pointer to this