cURL / Mailing Lists / curl-library / Single Mail

curl-library

v2 of patch to fix busy-waiting during Windows async name lookup

From: Constantine Sapuntzakis <csapuntz_at_gmail.com>
Date: Sun, 6 Sep 2009 08:41:16 -0700

Big question: whether to get rid of dummy socket on name resolve on Windows
outright (instead of the CURLMOPT_NODUMMY flag). On the one hand, the dummy
socket causes busy waits on some versions of Windows. On the other hand,
removing it will require code changes to curl windows clients - small
changes but code changes nonetheless.

Differences since last patch:
  * simpler timeout generation logic
  * More warnings about select() in the documentation
  * modified examples to handle maxfd==-1 on Windows

Other decisions:
  * won't use self-connect socketpair trick as some firewalls block it

-Costa

Received on 2009-09-06