[corinna-cygwin@cygwin.com: Re: ENOTSOCK errors with cygwin dll 1.3.21 and 1.3.22]

Pierre A. Humblet Pierre.Humblet@ieee.org
Tue May 27 07:50:00 GMT 2003

At 06:45 PM 5/26/2003 +0200, Corinna Vinschen wrote:

>Question:  Would a working workaround be sufficient as long as we don't
>quite understand why it fails?
>What I did is, first fhandler_socket::dup now tries to duplicate the
>socket by calling WSADuplicateSocket/WSASocket.  If that fails, duplicate
>the socket using DuplicateHandle.
>It's ugly but it seems to work:

That's the best idea I have seen so far. 
And the debug_printf will make future experimentation easy.


More information about the Cygwin-developers mailing list