curl-library
Re: Curllib on vista?
Date: Wed, 5 Mar 2008 02:31:40 +0100
2008/3/4, Jared Wilkin wrote:
> [...] So I guess the issue is
> what is the preferred way to detect a closed connection on Vista? The
> method that works on XP (where select returns with the read FD set and
> then an attempt to read returns 0 bytes read) doesn't work on Vista,
Not really ?
Msoft docs state that it should work on all Windows versions from 95
up to Vista.
Quoting http://msdn2.microsoft.com/en-us/library/ms740141(VS.85).aspx
"For connection-oriented sockets, readability can also indicate that a
request to close the socket has been received from the peer. If the
virtual circuit was closed gracefully, and all data was received, then
a recv will return immediately with zero bytes read. If the virtual
circuit was reset, then a recv will complete immediately with an error
code such as WSAECONNRESET."
Can you reproduce the error with a, non-libcurl just winsock2, minimal program ?
-- -=[Yang]=-Received on 2008-03-05