]> granicus.if.org Git - curl/commitdiff
when we have accepted the server's connection in a PORT sequence, we set
authorDaniel Stenberg <daniel@haxx.se>
Mon, 12 May 2003 12:37:35 +0000 (12:37 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 12 May 2003 12:37:35 +0000 (12:37 +0000)
the new socket to non-blocking

lib/ftp.c

index 471bd6edfd4eada910cf0a22d143987acef093af..5b79662c2f25e640216a457c912174d491716e60 100644 (file)
--- 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;
   }