Bugzilla – Bug 1627
RSS blocks on DNS failure
Last modified: 2009-09-08 09:16:54 UTC
Several days ago I had a DSL issue where my router could not connect to Verizon. While in this state, SlimServer choked, freezing me out of the Web Interface and choking on playback. Turns out that the RSS feed was blocking when attempting to read latest headlines. When trying to retrve RSS feed, it seems to hang on DNS resolution, essentially freezing the whole Slim Server app for the duration. Suggest decoupling the RSS feed from the main thread, or introducing non-blocking IO scheme. Thanks as always.
Dan, is there a non-blocking DNS that's readily available?
Yes - but it relies on compiled code: http://dotat.at/prog/adns-perl/
Created attachment 537 [details] test for info on server crash Slim::Player::Playlist::setCommandExecuteCallback (and clear...) are going to be removed after 6.1 so changed them to use Slim::Control::Command::setExecuteCallback (and clear...)
Created attachment 538 [details] log from my setup This is the log from startup on win2k wiht slimserver 6.1, slimscrobbler 0.30. I've done a slight tweak to get contact through the proxy. The http comms seem to work to a certain point, then fail. I have no idea what that last symbol reference is in the dump before the crash.
darn...nm those two attachments. for bug 1634 instead
This probably won't make it for 6.1, but we'll get to it as soon as feasible.
The port to SimpleAsyncHTTP will solve this issue, changing target to 6.3.
Fixed, the new RssNews plugin uses SimpleAsyncHTTP which does non-blocking DNS lookups.
Verified fixed in SlimServer Version: 6.3.0 - 7895 - Windows XP - EN - cp1252
This bug fix is now part of a released version, and so has been marked closed. If you are still experiencing this problem, please reopen the bug.