This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Pierre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]