From d00f2a8f2e8529024709f70c8ab4c4138dc651a0 Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Thu, 8 Dec 2016 16:32:36 -0500 Subject: 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 --- lib/connect.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/connect.h') 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 */ -- cgit v1.2.1