Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
I did this
I have a simple URL that takes some time before reply.
I also have a small program based on (https://curl.haxx.se/libcurl/c/simple.html).
When I run the program it raises a timeout error after 6 seconds of execution.
I expected the following
Timeout should not be raised when the client receives the response before the specified timeout option.
After some work, I've found the problem starts with this commit, merged before 7.61.0:
Linux 4.18.0-2-amd64 (Debian based)
curl_multi_wait() was erroneously used from within curl_easy_perform(). It could lead to it believing there was no socket to wait for and then instead sleep for a while instead of monitoring the socket and then miss acting on that activity as swiftly as it should (causing an up to 1000 ms delay). Reported-by: Antoni Villalonga Fixes #3305 Clodes #3306