From e09fad559a8aea08f493d27c2e3345474d50455e Mon Sep 17 00:00:00 2001 From: Arturo 'Buanzo' Busleiman Date: Sun, 30 Aug 2009 00:36:40 +0000 Subject: [PATCH] Fix for python 2.6 / 3.0 incompatibility git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@735 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- server/asyncserver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/asyncserver.py b/server/asyncserver.py index 13a74dac..b3f8ea52 100644 --- a/server/asyncserver.py +++ b/server/asyncserver.py @@ -132,7 +132,8 @@ class AsyncServer(asyncore.dispatcher): # Sets the init flag. self.__init = True # TODO Add try..catch - asyncore.loop(use_poll = True) + # There's a bug report for Python 2.6/3.0 that use_poll=True yields some 2.5 incompatibilities: + asyncore.loop(use_poll = False) # fixes the "Unexpected communication problem" issue on Python 2.6. ## # Stops the communication server.