mirror of
https://github.com/curl/curl.git
synced 2026-04-30 06:47:51 +03:00
http_proxy: only wait for writable socket while sending request
Otherwise it would wait socket writability even after the entire CONNECT
request has sent and make curl basically busy-loop while waiting for a
response to come back.
The previous fix attempt in #7484 (c27a70a591) was inadequate.
Reported-by: zloi-user on github
Reported-by: Oleguer Llopart
Fixes #7589
Closes #7647
This commit is contained in:
parent
5dc594e44f
commit
4fee6c644f
1 changed files with 1 additions and 1 deletions
|
|
@ -148,7 +148,7 @@ int Curl_connect_getsock(struct connectdata *conn)
|
|||
DEBUGASSERT(conn->connect_state);
|
||||
http = &conn->connect_state->http_proxy;
|
||||
|
||||
if(http->sending)
|
||||
if(http->sending == HTTPSEND_REQUEST)
|
||||
return GETSOCK_WRITESOCK(0);
|
||||
|
||||
return GETSOCK_READSOCK(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue