Merged revisions 86019 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86019 | brian.curtin | 2010-10-30 23:40:53 -0500 (Sat, 30 Oct 2010) | 2 lines

  Fix a ResourceWarning for an unclosed socket.
........
This commit is contained in:
Brian Curtin 2010-10-31 04:42:40 +00:00
parent 0343d8f4f1
commit d9f3f08b8c
1 changed files with 1 additions and 0 deletions

View File

@ -352,6 +352,7 @@ def serve_until_stopped(self):
logging._acquireLock()
abort = self.abort
logging._releaseLock()
self.socket.close()
def serve(rcvr, hdlr, port):
server = rcvr(port=port, handler=hdlr)