curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Stuck in poll on network disconnect

From: Magdy, Marco via curl-library <curl-library_at_cool.haxx.se>
Date: Fri, 14 Jun 2019 04:30:57 +0000

On 6/13/19, 10:43 AM, "Daniel Stenberg" <daniel_at_haxx.se> wrote:
    
    No, it rather seems that the Curl_speedcheck() function isn't doing what it's
    supposed to do in your case but I have no idea why...

A debug build shows that we keep looping in easy_transfer()[1]. We're not stuck in
poll() as I initially thought.
I've created a PR [2] that fixes the problem and passes the unit tests. However,
I wasn't sure how to write a test case for such a problem. Also, I'm not sure if
that's the right spot to call Curl_speedcheck.

[1] https://github.com/curl/curl/blob/master/lib/easy.c#L603
[2] https://github.com/curl/curl/pull/4026

 

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-06-14