diff options
author | Brad Spencer <bspencer@blackberry.com> | 2014-05-27 23:58:28 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-05-27 23:58:28 +0200 |
commit | fb4937a31185a967f874da1c1f679de7d0f9c16a (patch) | |
tree | 17451d8246f3bf9761e82e11b4fa48f4643c0bc5 /projects/Windows/VC6 | |
parent | 1b89456509c1ae3907bd65d9bc2114423ee4e790 (diff) |
select: with winsock, avoid passing unsupported arguments to select()
"Any two of the parameters, readfds, writefds, or exceptfds, can be
given as null. At least one must be non-null, and any non-null
descriptor set must contain at least one handle to a socket."
http://msdn.microsoft.com/en-ca/library/windows/desktop/ms740141(v=vs.85).aspx
When using select(), cURL doesn't adhere to this (WinSock-specific)
rule, and can ask to monitor empty fd_sets, which leads to select()
returning WSAEINVAL (i.e. EINVAL) and connections failing in mysterious
ways as a result (at least when using the curl_multi_socket_action()
interface).
Bug: http://curl.haxx.se/mail/lib-2014-05/0278.html
Diffstat (limited to 'projects/Windows/VC6')
0 files changed, 0 insertions, 0 deletions