bits.close: introduce connection close tracking
authorDaniel Stenberg <daniel@haxx.se>
Tue, 20 May 2014 08:32:23 +0000 (10:32 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 21 May 2014 22:34:10 +0000 (00:34 +0200)
commitdf13f8e8c2199b572f19d295e5c59e7502204b3a
treeb664dc79f3de9d810f13dd01decbd0b03fcb06b5
parent491767418bd3e69867d48c2f9b4ea58f7112a879
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.
18 files changed:
lib/asyn-ares.c
lib/asyn-thread.c
lib/connect.c
lib/connect.h
lib/ftp.c
lib/http.c
lib/http_proxy.c
lib/imap.c
lib/ldap.c
lib/multi.c
lib/openldap.c
lib/pop3.c
lib/smtp.c
lib/ssh.c
lib/tftp.c
lib/transfer.c
lib/url.c
lib/urldata.h