From df13f8e8c2199b572f19d295e5c59e7502204b3a Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 20 May 2014 10:32:23 +0200 Subject: bits.close: introduce connection close tracking Make all code use connclose() and connkeep() when changing the "close state" for a connection. These two macros take a string argument with an explanation, and debug builds of curl will include that in the debug output. Helps tracking connection re-use/close issues. --- lib/http_proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/http_proxy.c') diff --git a/lib/http_proxy.c b/lib/http_proxy.c index 0ee1a73d5..a98c68c1c 100644 --- a/lib/http_proxy.c +++ b/lib/http_proxy.c @@ -69,7 +69,7 @@ CURLcode Curl_proxy_connect(struct connectdata *conn) prot_save = conn->data->req.protop; memset(&http_proxy, 0, sizeof(http_proxy)); conn->data->req.protop = &http_proxy; - conn->bits.close = FALSE; + connkeep(conn, "HTTP proxy CONNECT"); result = Curl_proxyCONNECT(conn, FIRSTSOCKET, conn->host.name, conn->remote_port); conn->data->req.protop = prot_save; -- cgit v1.2.3