]> git.ipfire.org Git - thirdparty/curl.git/commit
http_proxy: only wait for writable socket while sending request
authorDaniel Stenberg <daniel@haxx.se>
Fri, 27 Aug 2021 15:42:40 +0000 (17:42 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 27 Aug 2021 21:34:37 +0000 (23:34 +0200)
commit4fee6c644fd9f807fcbe690ccf1c2617a78dfe93
tree71b20b3f4b10dfc2caa325c88ce2d0bd3f832eb9
parent5dc594e44f73b1726cabca6a4395323f972e416d
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 (c27a70a591a4) was inadequate.

Reported-by: zloi-user on github
Reported-by: Oleguer Llopart
Fixes #7589
Closes #7647
lib/http_proxy.c