aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-05-12 12:37:35 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-05-12 12:37:35 +0000
commit9ead79c9d42018394b7c34b1da16a4423daab556 (patch)
tree0de3a15d70acbc3b2c4ac579870c49fc0482d0cf
parent9371aed46c5bf938b2dcfae65086292ead322a77 (diff)
when we have accepted the server's connection in a PORT sequence, we set
the new socket to non-blocking
-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;
}