summaryrefslogtreecommitdiff
path: root/lib/connect.h
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2016-12-08 16:32:36 -0500
committerJay Satiro <raysatiro@yahoo.com>2016-12-19 02:26:52 -0500
commitd00f2a8f2e8529024709f70c8ab4c4138dc651a0 (patch)
treeaa867b0c1a2d4f5f3f59541d4990adf8576a27c3 /lib/connect.h
parentafb57f7b0bfe179b1d31acf652cc136349de32ec (diff)
downloadcurl-d00f2a8f2e8529024709f70c8ab4c4138dc651a0.tar.gz
http_proxy: Fix proxy CONNECT hang on pending data
- Check for pending data before waiting on the socket. Bug: https://github.com/curl/curl/issues/1156 Reported-by: Adam Langley
Diffstat (limited to 'lib/connect.h')
-rw-r--r--lib/connect.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/connect.h b/lib/connect.h
index e01d1b35e..5653cb4e5 100644
--- a/lib/connect.h
+++ b/lib/connect.h
@@ -142,4 +142,6 @@ void Curl_conncontrol(struct connectdata *conn,
#define connkeep(x,y) Curl_conncontrol(x, CONNCTRL_KEEP)
#endif
+bool Curl_conn_data_pending(struct connectdata *conn, int sockindex);
+
#endif /* HEADER_CURL_CONNECT_H */