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
_tent/ipv6_via_aInfo
Arturo 'Buanzo' Busleiman 15 years ago
parent 53886e91b3
commit e09fad559a

@ -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.

Loading…
Cancel
Save