diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-04-19 16:58:27 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-04-20 12:40:45 +0200 |
commit | e06b8bdae6a6e552d7430c00853d18b9378eac29 (patch) | |
tree | c661785fe2d2a72fe8c444f29dda8a3315a347f1 /lib | |
parent | 31c3111284524bba68acf2695624f5b3501f1ad0 (diff) |
Curl_disconnect: treat all CONNECT_ONLY connections as "dead"
Since the connection has been used by the "outside" we don't know the
state of it anymore and curl should not use it anymore.
Bug: https://curl.haxx.se/mail/lib-2019-04/0052.html
Closes #3795
Diffstat (limited to 'lib')
-rw-r--r-- | lib/url.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -809,6 +809,10 @@ CURLcode Curl_disconnect(struct Curl_easy *data, for the connection! */ conn->data = data; + if(conn->bits.connect_only) + /* treat the connection as dead in CONNECT_ONLY situations */ + dead_connection = TRUE; + if(conn->handler->disconnect) /* This is set if protocol-specific cleanups should be made */ conn->handler->disconnect(conn, dead_connection); |