mirror of https://github.com/moparisthebest/curl
added some infof() calls for persistant info
This commit is contained in:
parent
9c63fcf210
commit
4af55809e4
10
lib/url.c
10
lib/url.c
|
@ -546,12 +546,10 @@ CURLcode curl_disconnect(CURLconnect *c_connect)
|
||||||
#endif /* USE_SSLEAY */
|
#endif /* USE_SSLEAY */
|
||||||
|
|
||||||
/* close possibly still open sockets */
|
/* close possibly still open sockets */
|
||||||
if(-1 != conn->secondarysocket) {
|
if(-1 != conn->secondarysocket)
|
||||||
sclose(conn->secondarysocket);
|
sclose(conn->secondarysocket);
|
||||||
}
|
if(-1 != conn->firstsocket)
|
||||||
if(-1 != conn->firstsocket) {
|
|
||||||
sclose(conn->firstsocket);
|
sclose(conn->firstsocket);
|
||||||
}
|
|
||||||
|
|
||||||
if(conn->allocptr.proxyuserpwd)
|
if(conn->allocptr.proxyuserpwd)
|
||||||
free(conn->allocptr.proxyuserpwd);
|
free(conn->allocptr.proxyuserpwd);
|
||||||
|
@ -669,9 +667,11 @@ ConnectionStore(struct UrlData *data,
|
||||||
if(!data->connects[i])
|
if(!data->connects[i])
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(i == data->numconnects)
|
if(i == data->numconnects) {
|
||||||
/* there was no room available, kill one */
|
/* there was no room available, kill one */
|
||||||
i = ConnectionKillOne(data);
|
i = ConnectionKillOne(data);
|
||||||
|
infof(data, "Connection (#%d) was killed to make room\n", i);
|
||||||
|
}
|
||||||
|
|
||||||
data->connects[i] = conn; /* fill in this */
|
data->connects[i] = conn; /* fill in this */
|
||||||
conn->connectindex = i; /* make the child know where the pointer to this
|
conn->connectindex = i; /* make the child know where the pointer to this
|
||||||
|
|
Loading…
Reference in New Issue