From: Daniel Stenberg Date: Mon, 12 May 2003 12:37:35 +0000 (+0000) Subject: when we have accepted the server's connection in a PORT sequence, we set X-Git-Tag: curl-7_10_5~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ead79c9d42018394b7c34b1da16a4423daab556;p=curl when we have accepted the server's connection in a PORT sequence, we set the new socket to non-blocking --- diff --git a/lib/ftp.c b/lib/ftp.c index 471bd6edf..5b79662c2 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -158,6 +158,7 @@ static CURLcode AllowServerConnect(struct SessionHandle *data, infof(data, "Connection accepted from server\n"); conn->secondarysocket = s; + Curl_nonblock(s, TRUE); /* enable non-blocking */ } break; }