curl-library
Re: [ curl-Bugs-1600447 ] Active FTPupload/downloadwithmultiinterface.
Date: Sat, 2 Dec 2006 22:25:10 +0100 (CET)
On Sun, 26 Nov 2006, Daniel Stenberg wrote:
> I still consider my suggested approach the "proper" fix for this
While waiting for a proper fix, I think this one works (but still does the
connect from server in a blocking manner):
diff -u -r1.382 ftp.c
--- lib/ftp.c 17 Oct 2006 21:32:56 -0000 1.382
+++ lib/ftp.c 2 Dec 2006 21:23:33 -0000
@@ -1168,6 +1168,15 @@
#endif /* end of ipv4-specific code */
+ /* this tcpconnect assignment below is a hackish work-around to make the
+ multi interface with active FTP work - as it will not wait for a
+ (passive) connect in Curl_is_connected().
+
+ The *proper* fix is to make sure that the active connection from the
+ server is done in a non-blocking way. Currently, it is still BLOCKING.
+ */
+ conn->bits.tcpconnect = TRUE;
+
state(conn, FTP_PORT);
return result;
}
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2006-12-02