Hi,

Here is a small patch that removes the default timeout for a Curl request.
The CURLOPT_TIMEOUT option is used to set a maximum time that
Curl is allowed to perform a request.
Setting it by default makes Ecore_Con_Url (and ecore_file_download)
to fail downloading big files that takes more than 300 seconds to
complete.

The attached patch just remove the timeout.

Please apply.

--
Raoul Hecky
Index: src/lib/ecore_con/ecore_con_url.c
===================================================================
--- src/lib/ecore_con/ecore_con_url.c   (révision 57196)
+++ src/lib/ecore_con/ecore_con_url.c   (copie de travail)
@@ -315,7 +315,6 @@
     * FIXME: Provide a means to change these timeouts
     */
    curl_easy_setopt(url_con->curl_easy, CURLOPT_CONNECTTIMEOUT, 30);
-   curl_easy_setopt(url_con->curl_easy, CURLOPT_TIMEOUT, 300);
    curl_easy_setopt(url_con->curl_easy, CURLOPT_FOLLOWLOCATION, 1);
 
    return url_con;
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to