non-blocking socket bug?

[email protected] (Raul Dias)
Newsgroups perl.loop
Message-ID <[email protected]>
Hi,

I think I might have found another bug in Event.

First I create an watcher io for a socket created 
with IO::Socket::INET, which has a client connected
(just after the accept) 
with the socket in non-blocking mode ($socket->blocking(0);)
for read (poll => 'r').

when this watcher gets called the socket will be in blocking mode
( $socket->blocking == 1 ).
This won't make a difference for line based protocols that just use
<$socket>  for reading, but it will block until the end of the connection
to the client if using sysread ($socket->sysread(); )

Of course, I am not a networking guru, so this behaviour could be 
expected when puting it in a poll/select like Event does.

Regards,

Raul Dias
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.