You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
curl_multi_timeout: change in behavior after 8.16.0+ #20498
Before 8.16.0, the return value contained two values [0, -1]. However, with the libcurl curl-8.16.0~rc3, there is just one entry [0]. Probably because -1 is now represented internally by the dirty bit.
-1 is the value indicating that the timer needs to be cleared. This should always come when a timer was set, event set to a value of 0. So, if you see a 0 not followed by a -1 that looks wrong. But I do not know what your test code is really doing.
Are you able to get curl trace output on such runs? CURLOPT_DEBUGFUNCTION and setting curl_global_trace("all") to see timer handling....
Activity
icing commentedon Feb 2, 2026
-1is the value indicating that the timer needs to be cleared. This should always come when a timer was set, event set to a value of0. So, if you see a0not followed by a-1that looks wrong. But I do not know what your test code is really doing.Are you able to get curl trace output on such runs?
CURLOPT_DEBUGFUNCTIONand settingcurl_global_trace("all")to see timer handling....jamacku commentedon Feb 3, 2026
Thank you, @icing, for your prompt response. Here are the logs from the Ethon testsuite.
With curl 8.15.0:
Previously, the test also included calling
curl_multi_socket_action()before callingcurl_multi_remove_handle(), which was later removed.With curl 8.18.0 there is a missing
-1:Calling additional action before
curl_multi_remove_handle()makes-1appear again.multi_remove_handle: update timer unconditionally
icing commentedon Feb 3, 2026
Thanks! That made it clear to me what was happening. Please check #20502 which should restore the old, correct behaviour.
jamacku commentedon Feb 3, 2026
@icing Thank you for the prompt fix. I have verified that your patch fixes the issue (test now passes).
jay commentedon Feb 3, 2026
Thanks
multi: update timer unconditionally in multi_remove_handle
multi: update timer unconditionally in multi_remove_handle