cURL / Mailing Lists / curl-library / Single Mail


Re: multi interface is broken with active FTP connection

From: Daniel Stenberg <>
Date: Fri, 21 Oct 2011 23:09:31 +0200 (CEST)

On Fri, 21 Oct 2011, Gokhan Sengun wrote:

> Short of the story, after sending the PORT (or EPRT) command to the server,
> curl does not set the correct file descriptors in the file descriptor sets
> (readfs, writefs) given to the "select" call, therefore "select" call times
> out. "TYPE I" command could only be sent after the "select" timed-out and
> curl_multi_perfom is called afterwards! So each download/upload is delayed
> with the amount of time given to select as the timeout.

Great catch. Given your good description and data I can easily see this too...

> This could be one source of "performance" issues lately posted if these
> people are using multi interface.

I've not seen any reports on performance problems with FTP and the multi

BTW, this bug goes way way waaaaay back to 2006-04-10 (introduced in 7.15.4)

I'm working on the correct fix.


List admin:
Received on 2011-10-21