curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Hang in curl_easy_perform

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 23 Jun 2018 23:45:27 +0200 (CEST)

On Tue, 19 Jun 2018, Newton Petersen wrote:

> I am trying to debug a very rare but apparently infinite hang in the winsock
> select() call from Curl_poll:

...

> The timeout passed to select() is one second so this really shouldn't hang
> and points to this likely being a winsock issue?

My gut instinct says yes. I also know that winsock has this tendency with some
other calls at times as I know both Firefox and Chrome devs have chased
similar problems when using winsock - for years.

> Any suggestions for additional diagnostics if this ever happens again?

Very tricky. Personally, I wouldn't really know what to do unless I could
figure out a way to reproduce it and then I would start narrowing it down by
trying to remove logic, or add logic, while working out what works and what
doesn't.

I'm sorry that I can't help more at this point!

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