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/sendf.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/sendf.h') diff --git a/lib/sendf.h b/lib/sendf.h index a951a0b4f..fbe4f99c8 100644 --- a/lib/sendf.h +++ b/lib/sendf.h @@ -56,6 +56,8 @@ CURLcode Curl_client_chop_write(struct connectdata *conn, int type, char *ptr, CURLcode Curl_client_write(struct connectdata *conn, int type, char *ptr, size_t len) WARN_UNUSED_RESULT; +bool Curl_recv_has_postponed_data(struct connectdata *conn, int sockindex); + /* internal read-function, does plain socket only */ CURLcode Curl_read_plain(curl_socket_t sockfd, char *buf, -- cgit v1.2.3