[Eventmachine-talk] Ruby I/O

Francis Cianfrocca
Tue, 13 Mar 2007 17:16:04 -0000

On 3/13/07, Thomas Ptacek <tqbf at matasano.com>
wrote:
>
> BTW, I don''t know if the comment in ed.cpp:463 (0.7.0) is still
> germane, but I thought getpeername() did the sane thing in winsock,
> returning error on unconnected sockets that select writeable.



so you think a getpeername call would return a recognizable error on
Windows? The real problem with that code path is that I don''t think
Windows
reliably selects a socket as selectable when it has a connect error, so
there''s no opportunity to call getpeername or anything else. (This is
only
germane to the case in which you''re initiating a TCP connection to a
remote
peer.) Perhaps the socket selects in an error state on Windows? I never
tried that because it''s so unlike all the Unix flavors.
-------------- next part --------------
An HTML attachment was scrubbed...