Author irmen
Recipients
Date 2006-06-27.09:54:14
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
In Python 2.5b1, when closing a client socket using
socket.close(), the connecting client hangs. I.e. the
socket is not properly taken down. If you add an
explicit call to socket.shutdown(), prior to the
close(), it works again.

But I think this shutdown() should not be mandatory? At
least, it wasn't in older Python versions.

Sample code attached. Run the script and connect to
socket 9000. If you remove the call to shutdown, your
client connection will hang (use telnet or netcat).
History
Date User Action Args
2007-08-23 14:40:51adminlinkissue1513223 messages
2007-08-23 14:40:51admincreate