aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/connect.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 5d522b381..3a1bc2df7 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -1333,8 +1333,13 @@ CURLcode Curl_socket(struct connectdata *conn,
void Curl_conncontrol(struct connectdata *conn, bool closeit,
const char *reason)
{
+#if defined(CURL_DISABLE_VERBOSE_STRINGS)
+ (void) reason;
+#endif
+
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 */
}