From 9ead79c9d42018394b7c34b1da16a4423daab556 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 12 May 2003 12:37:35 +0000 Subject: [PATCH] when we have accepted the server's connection in a PORT sequence, we set the new socket to non-blocking --- lib/ftp.c | 1 + 1 file changed, 1 insertion(+) 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; }