gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 122/282: multi: if Curl_readwrite sets 'comeback' use expire, n


From: gnunet
Subject: [gnurl] 122/282: multi: if Curl_readwrite sets 'comeback' use expire, not loop
Date: Wed, 01 Apr 2020 14:29:47 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit d60b1b37a1682dee3a53bc6e15b44ecab9811297
Author: Daniel Stenberg <address@hidden>
AuthorDate: Fri Feb 14 16:54:06 2020 +0100

    multi: if Curl_readwrite sets 'comeback' use expire, not loop
    
    Otherwise, a very fast single transfer ricks starving out other
    concurrent transfers.
    
    Closes #4927
---
 lib/multi.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/lib/multi.c b/lib/multi.c
index 37a37a4f0..51154d6b2 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -2191,8 +2191,13 @@ static CURLMcode multi_runsingle(struct Curl_multi 
*multi,
           }
         }
       }
-      else if(comeback)
-        rc = CURLM_CALL_MULTI_PERFORM;
+      else if(comeback) {
+        /* This avoids CURLM_CALL_MULTI_PERFORM so that a very fast transfer
+           won't get stuck on this transfer at the expense of other concurrent
+           transfers */
+        Curl_expire(data, 0, EXPIRE_RUN_NOW);
+        rc = CURLM_OK;
+      }
       break;
     }
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]