[Eventmachine-talk] Ruby I/O

Thomas Ptacek
Tue, 13 Mar 2007 17:21:52 -0000

Have you checked out how ACE handles this? (Their answer might just be
to use WMFO instead of select).

On 3/13/07, Francis Cianfrocca <garbagecat10 at gmail.com>
wrote:
> 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.
>
>
> _______________________________________________
> Eventmachine-talk mailing list
> Eventmachine-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/eventmachine-talk
>