I created https://github.com/curl/curl/pull/14766 as a fix for this.
The bug was that the socket was not using POLLIN, but POLLOUT. So it never triggered an event when the FTP server tried to connect. That led to the connect only being noticed a second later when curl checks on all transfers. Hope this works for you. > Am 03.09.2024 um 08:13 schrieb Daniel Stenberg via curl-library > <curl-library@lists.haxx.se>: > > On Sat, 31 Aug 2024, Yoshimasa Ohno via curl-library wrote: > >> I found that the timeout argument of curl_multi_poll, the literal 1000, was >> having an effect. Changing this to 3000 resulted in a 3 second wait. > > We believe there might be a bug in the code that sets what socket activity > curl should wait for when waiting for the connect to happen. (A regression) > > Stefan is going to try to get a fix made and submitted soon. > > -- > > / daniel.haxx.se > | Commercial curl support up to 24x7 is available! > | Private help, bug fixes, support, ports, new features > | https://curl.se/support.html > -- > Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library > Etiquette: https://curl.se/mail/etiquette.html -- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.html