cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: PORT mode & progress updates

From: George Comninos <george_at_macromedia.com>
Date: Mon, 12 May 2003 14:09:05 -0700

thanks Daniel, these fixes definitely take care of the problem..

cheers,
-george

on 5/12/03 4:46 AM, Daniel Stenberg at daniel_at_haxx.se wrote:

> No, libcurl should set it nonblocking by itself. It does do that just before
> it does the TCP connect...
>
> *BUT* it doesn't do that in the case of PORT, since that doesn't use any
> connect, it allows the remote server to connect to it fine, but it never sets
> the socket non-blocking.
>
> Try adding this patch (in addition to the writedone one):
>
> diff -u -r1.178 ftp.c
> --- ftp.c 9 May 2003 07:39:29 -0000 1.178
> +++ ftp.c 12 May 2003 11:45:34 -0000
> @@ -158,6 +158,7 @@
> infof(data, "Connection accepted from server\n");
>
> conn->secondarysocket = s;
> + Curl_nonblock(s, TRUE); /* enable non-blocking */
> }
> break;
> }
>
>

-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
Received on 2003-05-12