aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ftp.c1
1 files changed, 1 insertions, 0 deletions
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;
}