this should fix curl support from hacning for up to 0.7* 1/fps sec on
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 10 Oct 2011 09:36:56 +0000 (09:36 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 10 Oct 2011 09:36:56 +0000 (09:36 +0000)
1 or more calls and even in idlers etc. only do it once then rely on
fd's to wake up and do it again.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@63955 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_con/ecore_con_url.c

index 4bf28d6..c34a0ff 100644 (file)
@@ -1357,21 +1357,26 @@ _ecore_con_url_perform(Ecore_Con_Url *url_con)
    int fd_max, fd;
    int flags, still_running;
    int completed_immediately = 0;
-   double start;
+//   double start;
    CURLMcode ret;
 
    _url_con_list = eina_list_append(_url_con_list, url_con);
 
    url_con->active = EINA_TRUE;
    curl_multi_add_handle(_curlm, url_con->curl_easy);
-
+/*
    start = ecore_time_get();
-   while (curl_multi_perform(_curlm, &still_running) == CURLM_CALL_MULTI_PERFORM)
-     if ((ecore_time_get() - start) > (0.7 * ecore_animator_frametime_get()))
-       {
-          break;
-       }
-
+   while (curl_multi_perform(_curlm, &still_running) == 
+          CURLM_CALL_MULTI_PERFORM)
+     {
+        if ((ecore_time_get() - start) > (0.7 * ecore_animator_frametime_get()))
+          {
+             break;
+          }
+     }
+ */
+   curl_multi_perform(_curlm, &still_running);
+   
    completed_immediately = _ecore_con_url_process_completed_jobs(url_con);
 
    if (!completed_immediately)