[sword-svn] r1698 - trunk/src/mgr

jansorg at crosswire.org jansorg at crosswire.org
Fri Jan 28 12:27:39 MST 2005


Author: jansorg
Date: 2005-01-28 12:27:38 -0700 (Fri, 28 Jan 2005)
New Revision: 1698

Modified:
   trunk/src/mgr/curlftpt.cpp
Log:
Disable EPRT in the CURL FTP connection if we have Curl>=7.10.6. It prevents downloads on system too often.

Modified: trunk/src/mgr/curlftpt.cpp
===================================================================
--- trunk/src/mgr/curlftpt.cpp	2005-01-28 12:09:08 UTC (rev 1697)
+++ trunk/src/mgr/curlftpt.cpp	2005-01-28 19:27:38 UTC (rev 1698)
@@ -94,6 +94,11 @@
 
 		/* Switch on full protocol/debug output */
 		curl_easy_setopt(session, CURLOPT_VERBOSE, true);
+		
+		/* FTP connection settings */
+#ifdef LIBCURL_VERSION_MAJOR>=7 && LIBCURL_VERSION_MINOR>=10 && LIBCURL_VERSION_PATCH>=6
+		curl_easy_setopt(session, CURLOPT_FTP_USE_EPRT, 0);
+#endif
 
 		res = curl_easy_perform(session);
 



More information about the sword-cvs mailing list