Close filehandles on connection reaping
- I thought this is done automatically through garbage collection, but I think as the channel is still assigned in the asyncore map, it needs to be done manually. Basically filehandle limit exceeded and it crashed
This commit is contained in:
parent
5e042b76e7
commit
fdfbb77ed2
|
@ -111,6 +111,7 @@ class BMConnectionPool(object):
|
||||||
del self.inboundConnections[connection.destination.host]
|
del self.inboundConnections[connection.destination.host]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
connection.close()
|
||||||
|
|
||||||
def getListeningIP(self):
|
def getListeningIP(self):
|
||||||
if BMConfigParser().safeGet("bitmessagesettings", "onionhostname").endswith(".onion"):
|
if BMConfigParser().safeGet("bitmessagesettings", "onionhostname").endswith(".onion"):
|
||||||
|
|
Reference in New Issue
Block a user