conncontrol: only log changes to the connection bit
This commit is contained in:
parent
00ea0e7db0
commit
9da14a96ab
@ -1359,11 +1359,12 @@ void Curl_conncontrol(struct connectdata *conn, bool closeit,
|
|||||||
#if defined(CURL_DISABLE_VERBOSE_STRINGS)
|
#if defined(CURL_DISABLE_VERBOSE_STRINGS)
|
||||||
(void) reason;
|
(void) reason;
|
||||||
#endif
|
#endif
|
||||||
|
if(closeit != conn->bits.close) {
|
||||||
|
infof(conn->data, "Marked for [%s]: %s\n", closeit?"closure":"keep alive",
|
||||||
|
reason);
|
||||||
|
|
||||||
infof(conn->data, "Marked for [%s]: %s\n", closeit?"closure":"keep alive",
|
conn->bits.close = closeit; /* the only place in the source code that
|
||||||
reason);
|
should assign this bit */
|
||||||
|
}
|
||||||
conn->bits.close = closeit; /* the only place in the source code that should
|
|
||||||
assign this bit */
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user