From: Tom Hughes Date: Wed, 20 Aug 2014 12:53:16 +0000 (+0100) Subject: Changing the global socket timeout is evil X-Git-Tag: live~13 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/00c96a815b90c672ee5f023658783e127a4b1165?ds=sidebyside Changing the global socket timeout is evil --- diff --git a/forum_modules/akismet/lib/akismet.py b/forum_modules/akismet/lib/akismet.py index fd15794..7d2cb35 100644 --- a/forum_modules/akismet/lib/akismet.py +++ b/forum_modules/akismet/lib/akismet.py @@ -60,9 +60,9 @@ from urllib import urlencode from forum import settings import socket -if hasattr(socket, 'setdefaulttimeout'): - # Set the default timeout on sockets to 5 seconds - socket.setdefaulttimeout(5) +#if hasattr(socket, 'setdefaulttimeout'): +# # Set the default timeout on sockets to 5 seconds +# socket.setdefaulttimeout(5) __version__ = '0.2.0'