bug: select() for sockets returned by accept() returns always ready for write (sel.always_ready 1)

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Jan 28 17:45:00 GMT 2003


On Tue, Jan 28, 2003 at 08:44:51AM +0200, Risto Virkkala wrote:
> After looking select.cc fhandler.cc fhandler_socket.cc I think that the reason could be that in fhandler_socket::accept the socket is not set to CONNECTED state and in fhandler_socket::select_write sets write_ready if socket is in unconnected state.

Thanks for the report.  It looks pretty much as if you're right here.
I've set the returned file descriptor to connected state.  Would you
mind to test the next available developers snapshot?

Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list