r7349 - dumbhippo/trunk/firehose/firehose/jobs
- From: commits mugshot org
- To: online-desktop-list gnome org
- Subject: r7349 - dumbhippo/trunk/firehose/firehose/jobs
- Date: Mon, 3 Mar 2008 17:29:09 -0600 (CST)
Author: walters
Date: 2008-03-03 17:29:09 -0600 (Mon, 03 Mar 2008)
New Revision: 7349
Modified:
dumbhippo/trunk/firehose/firehose/jobs/poller.py
Log:
Set a shorter socket timeout, sadly global.
Modified: dumbhippo/trunk/firehose/firehose/jobs/poller.py
===================================================================
--- dumbhippo/trunk/firehose/firehose/jobs/poller.py 2008-03-03 22:52:17 UTC (rev 7348)
+++ dumbhippo/trunk/firehose/firehose/jobs/poller.py 2008-03-03 23:29:09 UTC (rev 7349)
@@ -17,6 +17,11 @@
from firehose.jobs.logutil import log_except
+# This gross hack is the only easy way right now for us to set
+# a timeout on socket connections
+import socket
+socket.setdefaulttimeout(30)
+
_logger = logging.getLogger('firehose.Poller')
aws_config_path = os.path.expanduser('~/.aws')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]