Page 1 of 1

Hangs with multiple servers

Posted: December 13th, 2008, 2:37 pm
by Haskell Noob
I've configured three news-servers and all works well until one of them becomes unresponsive. Then sabnzbd+ is not able to use the remaining two servers, it justs sits there presumably waiting for a timeout. However it never recovers.

Something with the server-connection / timeout handling seems to be the problem.

I'm using 0.4.6RC2 but 0.4.5 behaves exactly the same way. I'm on Debian/lenny.

Re: Hangs with multiple servers

Posted: December 14th, 2008, 3:51 am
by sander
I sometimes have this problem too. To workaround it, I restart SAB and/or change the queue order and/or limit the number of active servers to one.

Re: Hangs with multiple servers

Posted: December 14th, 2008, 6:30 am
by shypike
This is a known problem, that we cannot solve without some fundamental changes in the downloader.
This will take time.

See discussion:
http://forums.sabnzbd.org/index.php?topic=1445.0

Re: Hangs with multiple servers

Posted: December 15th, 2008, 1:34 pm
by Haskell Noob
Since you're already using non-blocking sockets, you'd have to implement some sort of select() handling that identifies whether the socket in question will be readable on the next recv() given a certain amount of timeout.

I agree, this can be tedious.