Can RSS Read Feed Time Out Be Increased?

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
sab12397
Full Member
Full Member
Posts: 117
Joined: August 8th, 2008, 1:09 pm

Can RSS Read Feed Time Out Be Increased?

Post 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
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Can RSS Read Feed Time Out Be Increased?

Post by shypike »

Good idea.
sab12397
Full Member
Full Member
Posts: 117
Joined: August 8th, 2008, 1:09 pm

Re: Can RSS Read Feed Time Out Be Increased?

Post 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?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Can RSS Read Feed Time Out Be Increased?

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Can RSS Read Feed Time Out Be Increased?

Post 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.
sab12397
Full Member
Full Member
Posts: 117
Joined: August 8th, 2008, 1:09 pm

Re: Can RSS Read Feed Time Out Be Increased?

Post by sab12397 »

Thanks for looking.
sab12397
Full Member
Full Member
Posts: 117
Joined: August 8th, 2008, 1:09 pm

Re: Can RSS Read Feed Time Out Be Increased?

Post 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
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Can RSS Read Feed Time Out Be Increased?

Post by shypike »

If you're using the source distribution of 0.7.7
Find sabnzbd/util/feedparser.py
Find line 3005

Code: Select all

            return opener.open(request)
change it to

Code: Select all

            return opener.open(request, timeout=120)
or whatever other number you like.
Post Reply