cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [ curl-Bugs-1600447 ] Active FTP upload/downloadwithmultiinterface.

From: Alexey Simak <alexeysimak_at_gmail.com>
Date: Sat, 25 Nov 2006 16:08:51 +0200

> So instead of the previously suggested patch that would check if active
FTP is
> used in multi.c (knowledge that we certainly do not want the multi code to
> deal with), isn't perhaps this patch below enough to solve this issue?
>
> --- lib/ftp.c 17 Oct 2006 21:32:56 -0000 1.382
> +++ lib/ftp.c 25 Nov 2006 13:06:53 -0000
> @@ -233,7 +233,7 @@
> return CURLE_FTP_PORT_FAILED;
> }
> infof(data, "Connection accepted from server\n");
> -
> + conn->bits.tcpconnect = TRUE;
> conn->sock[SECONDARYSOCKET] = s;
> Curl_nonblock(s, TRUE); /* enable non-blocking */
> }

No, this patch does not resolve the issue( I tried it ). The problem is that
the
AllowServerConnect() is called AFTER(!!!) RETR, LIST or STOR
command is sent, but the programm hangs BEFORE(!!!) one of these
commands is sent.
Received on 2006-11-25