[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs
Scott Dial
report at bugs.python.org
Wed Dec 9 19:24:47 CET 2009
Scott Dial <scott at scottdial.com> added the comment:
I tracked the necessary change to r73638 and issue6267. However, I am
not sure it is in scope to backport all of that.
The only changed actually needed from this set to make SocketServer
behave correctly with a SSLSocket is:
def close_request(self, request):
"""Called to clean up an individual request."""
+ #explicitly shutdown. socket.close() merely releases
+ #the socket and waits for GC to perform the actual close.
+ request.shutdown(socket.SHUT_WR)
request.close()
Hence in my py26 patch, I have made a call to shutdown() within the
handler. I would call this a bug, but nobody seems to have noticed but
me, so I defer to you about the best solution.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5949>
_______________________________________
More information about the Python-bugs-list
mailing list