[issue3826] BaseHTTPRequestHandler depends on GC to close connections
STINNER Victor
report at bugs.python.org
Tue Jan 6 02:13:32 CET 2009
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
socket_real_close-5.patch: my own patch developed for the issue #4791
(which is exactly the same problem) to fix SocketIO:
- set self._sock=None on close
- update the io reference count directly in close() (but also in
destructor)
- add a regression test
You may merge my patch with gps's patch (which has different tests).
See also issue #4853 to block all operations on closed socket in the
low level API (socketmodule.c).
Added file: http://bugs.python.org/file12615/socket_real_close-5.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3826>
_______________________________________
More information about the Python-bugs-list
mailing list