Page 1 of 1
Can RSS Read Feed Time Out Be Increased?
Posted: December 11th, 2012, 3:06 pm
by sab12397
My RSS feed works fine when viewed in browser but SAB times out retrieving it.
Can the timeout be increased? (180 seconds would probably be a safe value)
Would be even better if the RSS timeout could be set on the Special Config page.
Thanks
Re: Can RSS Read Feed Time Out Be Increased?
Posted: December 11th, 2012, 4:42 pm
by shypike
Good idea.
Re: Can RSS Read Feed Time Out Be Increased?
Posted: December 12th, 2012, 12:24 pm
by sab12397
Thanks - I should have posted this in the Feature Requests. Is it easy to change something in the code to increase the timeout temporarily?
Re: Can RSS Read Feed Time Out Be Increased?
Posted: December 12th, 2012, 2:37 pm
by shypike
There will soon be 0.7.7 release that will possibly contain it.
One issue is that RSS access is done by a third-party library.
I haven't looked into it yet.
Re: Can RSS Read Feed Time Out Be Increased?
Posted: December 14th, 2012, 1:23 pm
by shypike
Sorry to disappoint you.
Because we still support Python 2.5 (required for the Windows binary)
an alternative time-out value cannot be implemented.
At least not without rewriting significant parts to lower level functions, something we won't do.
Re: Can RSS Read Feed Time Out Be Increased?
Posted: December 15th, 2012, 1:32 pm
by sab12397
Thanks for looking.
Re: Can RSS Read Feed Time Out Be Increased?
Posted: December 19th, 2012, 12:51 pm
by sab12397
Is this something that may be supported in the future?
I am using Python 2.7 Linux is there a simple number I can change somewhere?
Thanks
Re: Can RSS Read Feed Time Out Be Increased?
Posted: December 19th, 2012, 2:46 pm
by shypike
If you're using the source distribution of 0.7.7
Find sabnzbd/util/feedparser.py
Find line 3005
change it to
Code: Select all
return opener.open(request, timeout=120)
or whatever other number you like.