Message28937
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).
|
|
| Date |
User |
Action |
Args |
| 2007-08-23 14:40:51 | admin | link | issue1513223 messages |
| 2007-08-23 14:40:51 | admin | create | |
|