Revert last change, which was incorrect.

This commit is contained in:
Kristján Valur Jónsson 2009-07-04 15:16:38 +00:00
parent 8c4f4178cb
commit b8e138aa23
3 changed files with 7 additions and 8 deletions

View file

@ -445,12 +445,7 @@ class TCPServer(BaseServer):
def close_request(self, request):
"""Called to clean up an individual request."""
try:
#explicitly shutdown. socket.close() merely releases
#the socket and waits for GC to perform the actual close.
request.shutdown(socket.SHUT_WR)
except socket.error:
pass #some platforms may raise ENOTCONN here
request.shutdown(socket.SHUT_WR)
request.close()