mspieth / rssdler

Automatically exported from code.google.com/p/rssdler
4 stars 0 forks source link

No timeout for grabbing a page. #32

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
My rssdler is set to run every hour, checking for a particular RSS file, 
but about once every two days, the rssdler will hang while trying to 
download the file and never exit.

I set my logging to debug, level 5, and have pasted the relevant bit below.

I can't see any option in the configuration file to include a timeout 
setting, is there an option for this?  I presume not.

What steps will reproduce the problem?
1. Program is set to run every hour
2. On occasion, the program will hang when trying to download the rss file.

What is the expected output? What do you see instead?

I expect the program to grab the rss file, look for any relevant files and 
then exit.  Instead, it hangs on the downloading.

What version of the product are you using? On what operating system?

Python 2.5.2
Ubuntu Linux Hardy
rssdler 0.4.0

Original issue reported on code.google.com by craig.fo...@gmail.com on 9 Oct 2008 at 10:07

Attachments:

GoogleCodeExporter commented 8 years ago
you may easily fix this by opening an editor with:

     nano `which rssdler`

and adding the following 2 lines before other "import" statements:

     import socket
     socket.setdefaulttimeout( 120 ) # 2 minutes HTTP timeout

Original comment by lenik.terenin on 19 Jan 2010 at 4:56