Message4021
def add_channel(self, map=None):
#self.log_info('adding channel %s' % self)
if map is None:
if hasattr(self, '_map'):
map = self._map
del self._map
else:
map = socket_map
if not hasattr(self, '_fileno'):
self._fileno = self.socket.fileno()
map[self._fileno] = self
The line "del self._map" breaks pyftpdlib [1] and, I presume, all other
other applications built on top of asyncore not using a custom socket_map.
There's really no reason to delete that attribute.
[1] http://code.google.com/p/pyftpdlib/ |
|
Date |
User |
Action |
Args |
2009-01-10 15:43:16 | billiejoex | set | recipients:
+ billiejoex |
2009-01-10 15:43:16 | billiejoex | set | messageid: <1231602196.33.0.946538951459.issue1226@psf.upfronthosting.co.za> |
2009-01-10 15:43:16 | billiejoex | link | issue1226 messages |
2009-01-10 15:43:16 | billiejoex | create | |
|