summaryrefslogtreecommitdiff
path: root/lib/http_proxy.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-06-09 08:38:07 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-06-11 12:43:53 +0200
commit14a2ca85ecb8478772a30d8c2521e5e1d1d98b3d (patch)
tree20c21ac6bc0b5465a43b581929ed6d81a339feb3 /lib/http_proxy.h
parent02dfe7193704817184b522888ffa926e6b73f648 (diff)
downloadcurl-14a2ca85ecb8478772a30d8c2521e5e1d1d98b3d.tar.gz
conn_shutdown: if closed during CONNECT cleanup properly
Reported-by: Alex Xu Reported-by: Phil E. Taylor Fixes #7236 Closes #7237
Diffstat (limited to 'lib/http_proxy.h')
-rw-r--r--lib/http_proxy.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/http_proxy.h b/lib/http_proxy.h
index f5a4cb07c..cdf8de4fb 100644
--- a/lib/http_proxy.h
+++ b/lib/http_proxy.h
@@ -65,9 +65,10 @@ struct http_connect_state {
} keepon;
curl_off_t cl; /* size of content to read and ignore */
enum {
- TUNNEL_INIT, /* init/default/no tunnel state */
- TUNNEL_CONNECT, /* CONNECT has been sent off */
- TUNNEL_COMPLETE /* CONNECT response received completely */
+ TUNNEL_INIT, /* init/default/no tunnel state */
+ TUNNEL_CONNECT, /* CONNECT has been sent off */
+ TUNNEL_COMPLETE, /* CONNECT response received completely */
+ TUNNEL_EXIT
} tunnel_state;
BIT(chunked_encoding);
BIT(close_connection);