curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder Daniel himself.

Re: When using ActiveMode of FTPS on Curl for Windows, it takes polling timeout time (1000msec) to establish DataConnection.

From: Stefan Eissing via curl-library <curl-library_at_lists.haxx.se>
Date: Tue, 3 Sep 2024 09:58:36 +0200

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_at_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
Received on 2024-09-03