Hi,

While reviewing an old asyncore issue,
http://bugs.python.org/issue12498

I read  the source code of _SelectorSocketTransport. I see that
write_eof() calls sock.shutdown(socket.SHUT_WR). _read_ready() closes
the socket if it didn't receive any data. It can keep the socket open
to write more data if protocol.eof_received() is False, but it doesn't
call sock.shutdown(socket.SHUT_RD).

Is there a reason for not calling sock.shutdown(socket.SHUT_RD)? If
yes, it would be nice to document it in a comment.

Victor

Reply via email to