From: Paul Brannan Date: 2002-09-12T04:33:54+09:00 Subject: Re: UDPSocket bug? On Wed, Sep 11, 2002 at 05:37:40AM +0900, Paul Brannan wrote: > On Wed, Sep 11, 2002 at 04:04:50AM +0900, Danny van Bruggen wrote: > > [BUG] rb_sys_fail() - errno == 0 > > Hmm, I wonder if Winsock isn't setting errno properly. If that's the > case, then rb_sys_fail() won't be sufficient for socket.c. According to http://www.sockets.com/a_c2.htm (and a few other sources), meaningful winsock error information cannot be obtained from errno; WSAGetLastError() should be used instead. In this situation, rb_sys_fail won't work. If I actually had a compiler installed on Windows, I'd write a patch, but this should be an easy fix anyway. This explains why the code was failing with such a strange error message; I wonder why it was failing in the first place, though. Paul