From fdfbb77ed204077bd4560e173e4bf97487e55d6f Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Sun, 19 Nov 2017 00:05:55 +0100 Subject: [PATCH] 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 --- src/network/connectionpool.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/network/connectionpool.py b/src/network/connectionpool.py index f489d9fc..2f937a15 100644 --- a/src/network/connectionpool.py +++ b/src/network/connectionpool.py @@ -111,6 +111,7 @@ class BMConnectionPool(object): del self.inboundConnections[connection.destination.host] except KeyError: pass + connection.close() def getListeningIP(self): if BMConfigParser().safeGet("bitmessagesettings", "onionhostname").endswith(".onion"):