Added infof() calls for persistant connection info, we are very likely to
need these at least for debugging 7.7 and probably later as well...
This commit is contained in:
Родитель
b449b94393
Коммит
d774b10afb
|
@ -396,6 +396,7 @@ Transfer(struct connectdata *c_conn)
|
||||||
* Default action for 1.0 is to close.
|
* Default action for 1.0 is to close.
|
||||||
*/
|
*/
|
||||||
conn->bits.close = FALSE; /* don't close when done */
|
conn->bits.close = FALSE; /* don't close when done */
|
||||||
|
infof(data, "HTTP/1.0 proxy connection set to keep alive!\n");
|
||||||
}
|
}
|
||||||
else if (strnequal("Connection: close", p,
|
else if (strnequal("Connection: close", p,
|
||||||
strlen("Connection: close"))) {
|
strlen("Connection: close"))) {
|
||||||
|
|
|
@ -495,6 +495,8 @@ RETSIGTYPE alarmfunc(int signal)
|
||||||
|
|
||||||
CURLcode Curl_disconnect(struct connectdata *conn)
|
CURLcode Curl_disconnect(struct connectdata *conn)
|
||||||
{
|
{
|
||||||
|
infof(conn->data, "Closing live connection (#%d)\n", conn->connectindex);
|
||||||
|
|
||||||
if(-1 != conn->connectindex)
|
if(-1 != conn->connectindex)
|
||||||
/* unlink ourselves! */
|
/* unlink ourselves! */
|
||||||
conn->data->connects[conn->connectindex] = NULL;
|
conn->data->connects[conn->connectindex] = NULL;
|
||||||
|
@ -1838,6 +1840,8 @@ CURLcode Curl_done(struct connectdata *conn)
|
||||||
in spite of all our efforts to be nice */
|
in spite of all our efforts to be nice */
|
||||||
if((CURLE_OK == result) && conn->bits.close)
|
if((CURLE_OK == result) && conn->bits.close)
|
||||||
result = Curl_disconnect(conn); /* close the connection */
|
result = Curl_disconnect(conn); /* close the connection */
|
||||||
|
else
|
||||||
|
infof(data, "Connection (#%d) left alive\n", conn->connectindex);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче