mirror of
https://github.com/python/cpython.git
synced 2025-11-14 07:49:28 +00:00
SF bug #892492: Multiple close() for asyncore.dispatcher.
(Contributed by Alexey Klimkin.) Don't keep the file descriptor after the channel is deleted.
This commit is contained in:
parent
204b000610
commit
3dc3484ac8
1 changed files with 1 additions and 0 deletions
|
|
@ -222,6 +222,7 @@ class dispatcher:
|
||||||
if map.has_key(fd):
|
if map.has_key(fd):
|
||||||
#self.log_info('closing channel %d:%s' % (fd, self))
|
#self.log_info('closing channel %d:%s' % (fd, self))
|
||||||
del map[fd]
|
del map[fd]
|
||||||
|
self._fileno = None
|
||||||
|
|
||||||
def create_socket(self, family, type):
|
def create_socket(self, family, type):
|
||||||
self.family_and_type = family, type
|
self.family_and_type = family, type
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue