diff options
author | Jay Satiro <raysatiro@yahoo.com> | 2016-12-08 16:32:36 -0500 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2016-12-19 02:26:52 -0500 |
commit | d00f2a8f2e8529024709f70c8ab4c4138dc651a0 (patch) | |
tree | aa867b0c1a2d4f5f3f59541d4990adf8576a27c3 /lib/sendf.h | |
parent | afb57f7b0bfe179b1d31acf652cc136349de32ec (diff) | |
download | curl-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/sendf.h')
-rw-r--r-- | lib/sendf.h | 2 |
1 files changed, 2 insertions, 0 deletions
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, |