bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Windows CVS 1.12.12.1 Latest + Patch - "version" Command Hangs


From: Derek Price
Subject: Re: Windows CVS 1.12.12.1 Latest + Patch - "version" Command Hangs
Date: Sat, 24 Sep 2005 22:32:06 -0400
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

Conrad T. Pino wrote:

>>From: Conrad T. Pino
>>
>>http://msdn.microsoft.com/library/en-us/winsock/winsock/select_2.asp
>>Beware MS "select" will *NOT* process file handles other than sockets.
>>Passing it file or pipe handles will likely fail.  I'll verify this.
>>    
>>
>
>Regrettably very sad but nevertheless it's true.  The "WSAGetLastError"
>error value is 10038 which is the WSAENOTSOCK symbol.  As MSDN says:
>
>Socket operation on nonsocket.  An operation was attempted on something
>that is not a socket.
>
>Either the socket handle parameter did not reference a valid socket, or
>for select, a member of an fd_set was not valid.
>  
>

That's exactly what the NO_SOCKET_TO_FD #definition is for and that's
why the socket-client.c file is necessary in the first place.  Probably
someone (likely me) added a call that assumes a socket descriptor may be
treated like a file descriptor and neglected to use the #ifdef
NO_SOCKET_TO_FD switch to select socket_buffer_initialize instead of
fd_buffer_initialize.  Can you figure out where the buffer came from?

Regards,

Derek

-- 
Derek R. Price
CVS Solutions Architect
Ximbiot <http://ximbiot.com>
v: +1 717.579.6168
f: +1 717.234.3125
<mailto:address@hidden>






reply via email to

[Prev in Thread] Current Thread [Next in Thread]