mirror of
https://github.com/curl/curl.git
synced 2026-08-26 20:23:32 +03:00
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
This commit is contained in:
parent
afb57f7b0b
commit
d00f2a8f2e
6 changed files with 256 additions and 231 deletions
|
|
@ -740,7 +740,7 @@ CURLcode Curl_GetFTPResponse(ssize_t *nreadp, /* return number of bytes read */
|
|||
* wait for more data anyway.
|
||||
*/
|
||||
}
|
||||
else if(!Curl_ssl_data_pending(conn, FIRSTSOCKET)) {
|
||||
else if(!Curl_conn_data_pending(conn, FIRSTSOCKET)) {
|
||||
switch(SOCKET_READABLE(sockfd, interval_ms)) {
|
||||
case -1: /* select() error, stop reading */
|
||||
failf(data, "FTP response aborted due to select/poll error: %d",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue