From 00c96a815b90c672ee5f023658783e127a4b1165 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 20 Aug 2014 13:53:16 +0100 Subject: [PATCH] Changing the global socket timeout is evil --- forum_modules/akismet/lib/akismet.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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' -- 2.39.5