On Sun, 10 Jan 2021, Fabian Keil via curl-library wrote:

The attached patch seems to work around the problem.
Busy-looping probably isn't the right solution, though.

Yeah, that's just not the right fix.

When the code returns there (http_proxy.c line 346) due to CURLE_AGAIN having been returned from the read function, it should return back out to the multi state-machine where it should remain in the CURLM_STATE_WAITPROXYCONNECT state until the socket gets readable again and it calls Curl_http_connect() again to continue to the CONNECT handling.

Can you rebuild with --enable-debug and see if the extra output shines some more light on this? Presumably, in your case the code moves on to the next state somehow when it shouldn't and we should figure out why!

--

 / daniel.haxx.se
 | Commercial curl support up to 24x7 is available!
 | Private help, bug fixes, support, ports, new features
 | https://www.wolfssl.com/contact/
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to