[Reportbug-commits] r692 - in trunk (debian/changelog reportbug/urlutils.py)

morph at users.alioth.debian.org morph at users.alioth.debian.org
Mon Feb 23 22:46:24 UTC 2009


    Date: Monday, February 23, 2009 @ 22:46:23
  Author: morph
Revision: 692

reportbug/urlutils.py

* reportbug/urlutils.py
  - added a timeout of 1 minute to download a webpage by url; thanks to Michal
    Suchanek for the report; Closes: 516449

Modified:
  trunk/debian/changelog
  trunk/reportbug/urlutils.py

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2009-02-23 22:46:04 UTC (rev 691)
+++ trunk/debian/changelog	2009-02-23 22:46:23 UTC (rev 692)
@@ -12,8 +12,11 @@
       test/test_hiermatch.py
   * bin/*, reportbug/*, reportbug/ui/*, debian/copyright
     - updated copyright information, in particular adding me 
+  * reportbug/urlutils.py
+    - added a timeout of 1 minute to download a webpage by url; thanks to Michal
+      Suchanek for the report; Closes: 516449
 
- -- Sandro Tosi <morph at debian.org>  Fri, 16 Jan 2009 10:40:29 +0100
+ -- Sandro Tosi <morph at debian.org>  Mon, 23 Feb 2009 23:38:15 +0100
 
 reportbug (3.99.1) experimental; urgency=low
 

Modified: trunk/reportbug/urlutils.py
===================================================================
--- trunk/reportbug/urlutils.py	2009-02-23 22:46:04 UTC (rev 691)
+++ trunk/reportbug/urlutils.py	2009-02-23 22:46:23 UTC (rev 692)
@@ -42,6 +42,9 @@
 
 UA_STR = 'reportbug/'+VERSION_NUMBER+' (Debian)'
 
+# Set timeout to 60 secs (1 min), cfr bug #516449
+socket.setdefaulttimeout(60)
+
 def decode (page):
     "gunzip or deflate a compressed page"
     #print page.info().headers




More information about the Reportbug-commits mailing list