aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-03-07 19:14:35 +0100
committerDaniel Stenberg <daniel@haxx.se>2015-03-07 19:18:49 +0100
commit9da14a96ab5c087814da142c96b2fbdb9ddac9af (patch)
tree7fd0cabc71fce339564c2e834c1b3aaade236adc /lib
parent00ea0e7db0a0a958309d35e28718949d10d537c9 (diff)
conncontrol: only log changes to the connection bit
Diffstat (limited to 'lib')
-rw-r--r--lib/connect.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 19b961934..464d7fbac 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -1359,11 +1359,12 @@ void Curl_conncontrol(struct connectdata *conn, bool closeit,
#if defined(CURL_DISABLE_VERBOSE_STRINGS)
(void) reason;
#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",
- reason);
-
- conn->bits.close = closeit; /* the only place in the source code that should
- assign this bit */
+ conn->bits.close = closeit; /* the only place in the source code that
+ should assign this bit */
+ }
}
#endif