[issue3826] BaseHTTPRequestHandler depends on GC to close connections
Amaury Forgeot d'Arc
report at bugs.python.org
Sat Nov 29 15:38:46 CET 2008
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
But real_close() is not called either in the trivial socket use:
import socket
s=socket.socket()
s.connect(('www.python.org',80))
del s
OTOH, I added some printf statements in socketmodule.c, near all usages
of SOCKETCLOSE(). They show that the raw socket is closed as expected -
except in the following case:
import socket
s=socket.socket()
s.connect(('www.python.org',80))
x=s.makefile()
x.close()
del s
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3826>
_______________________________________
More information about the Python-bugs-list
mailing list