Well, I also suffered from dropouts with my SB1 wired and SlimServer
running on a really slim server (VIA EPIA 5000 @ 533MHz, 2 250GB
external USB 1.1 drives).
The solution I found at that time (and which I still use) was to run 2
simultaneous SlimServers on different ports, one for the music
streaming and the other for the web UI and scanning, and to access the
web UI through an Apache proxy to redirect the requests to the proper
server ('play' requests to the main server and searches and web UI
browsing to the other). This was pretty hairy to set up, full Apache
configuration below.
Since then I never experienced any dropout anymore, even when listening
flac, searching for a song through the web UI (I currently have over
15'000 tracks) and rescanning my music collection at the same time.
This is how it looks like, happy reading.
Nicolas
[***@sirius ~]# ps -ef | grep slimserver
503 10976 1 2 01:53 ? 00:32:43 slimserver
503 10978 1 0 01:53 ? 00:00:00
/usr/local/slimserver/Bin/i386-linux/mDNSResponderPosix -d -f
/usr/local/slimserver/mDNS.conf -P /usr/local/slimserver/mDNS.pid
503 11009 1 0 01:53 ? 00:01:47 slimserver
503 9394 1 7 23:04 ? 00:00:05
/usr/local/slimserver/Bin/i386-linux/flac -dcs --force-raw-format
--endian=little --sign=signed --skip=0 --until=-0 -- /music/usb1/Alain
Bashung/Osez Josephine/06.flac
root 9500 9466 0 23:05 pts/0 00:00:00 grep slimserver
[***@sirius ~]# netstat -alnp | grep slimserver
tcp 0 0 0.0.0.0:9090 0.0.0.0:*
LISTEN 10976/slimserver
tcp 0 0 0.0.0.0:9000 0.0.0.0:*
LISTEN 10976/slimserver
tcp 0 0 0.0.0.0:9001 0.0.0.0:*
LISTEN 11009/slimserver
tcp 0 0 0.0.0.0:3483 0.0.0.0:*
LISTEN 10976/slimserver
tcp 0 568 192.168.1.2:3483 192.168.1.3:36684
ESTABLISHED 10976/slimserver
tcp 0 0 127.0.0.1:9090 127.0.0.1:34515
ESTABLISHED 10976/slimserver
tcp 0 21900 192.168.1.2:9000 192.168.1.3:36700
ESTABLISHED 10976/slimserver
udp 0 0 0.0.0.0:3483 0.0.0.0:*
10976/slimserver
unix 3 [ ] STREAM CONNECTED 2761469
11009/slimserver
unix 3 [ ] STREAM CONNECTED 2761457
10976/slimserver
[***@sirius init.d]# cat /etc/init.d/slimserver
...
SLIMSERVER_BIN="$SLIMSERVER_HOME/slimserver.pl"
SLIMSERVER1_BIN="$SLIMSERVER_HOME/slimserver1.pl"
[ -x $SLIMSERVER_BIN -a -f $SLIMSERVER_CFG ] || exit 5
start() {
echo -n "Starting SlimServer (9000): "
daemon --user $SLIMSERVER_USER $SLIMSERVER_BIN $SLIMSERVER_ARGS
--httpport 9000 --cliport 9090
echo
echo -n "Starting SlimServer (9001): "
daemon --user $SLIMSERVER_USER $SLIMSERVER1_BIN
$SLIMSERVER_ARGS --httpport 9001 --cliport 0
--logfile=${SLIMSERVER_LOG%.log}1.log
...
[***@sirius mizel_ch.d]# cat slimserver_proxy.conf
<IfModule !mod_proxy_html.c>
LoadFile /usr/lib/libxml2.so
LoadModule proxy_html_module modules/mod_proxy_html.so
</IfModule>
# slimserver.pl listening on port 9000
<Location /slimserver/>
RewriteEngine on
RewriteBase /slimserver
RewriteRule (.*)(player=)$ $1$200:04:20:05:75:b2
RewriteCond %{QUERY_STRING} !^hierarchy=playlist
RewriteRule :9000(.*/browsedb\.html.*) /slimserver1$1 [L]
RewriteRule :9000(.*/browsetree\.html.*) /slimserver1$1 [L]
RewriteRule :9000(.*/search\.html.*) /slimserver1$1 [L]
RewriteCond %{QUERY_STRING} !action=
RewriteRule :9000(.*/ShoutcastBrowser/index\.html.*)
/slimserver1$1 [L]
RewriteRule :9000(.*/Picks/index\.html\?player=.*)
/slimserver1$1 [L]
RewriteRule :9000(.*/RadioIO/index\.html\?player=.*)
/slimserver1$1 [L]
RewriteRule :9000(.*/livesearch\.(?:html|xml).*) /slimserver1$1
[L]
RewriteRule :9000(.*/advanced_search\.html.*) /slimserver1$1
[L]
RewriteRule :9000(.*/songinfo\.html.*) /slimserver1$1 [L]
RewriteRule :9000(.*/setup\.html\?.*rescan.*) /slimserver1$1
[L]
RewriteRule :9000(.*/.*\.jpg.*) /slimserver1$1 [L]
RequestHeader set Referer http://localhost:9000/
ProxyPass http://localhost:9000/
ProxyPassReverse http://localhost:9000/
SetOutputFilter proxy-html
ProxyHTMLURLMap / /slimserver/
</Location>
# slimserver1.pl listening on port 9001
<Location /slimserver1/>
RequestHeader set Referer http://localhost:9001/
ProxyPass http://localhost:9001/
ProxyPassReverse http://localhost:9001/
SetOutputFilter proxy-html
ProxyHTMLURLMap / /slimserver/
</Location>
<Location /slimserver/Handheld/>
SetOutputFilter proxy-html;DEFLATE
ProxyHTMLURLMap / /slimserver/
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip
dont-vary
</Location>
<Location /slimserver1/Handheld/>
SetOutputFilter proxy-html;DEFLATE
ProxyHTMLURLMap / /slimserver/
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip
dont-vary
</Location>
<Location /slimserver/Default/>
SetOutputFilter proxy-html;DEFLATE
ProxyHTMLURLMap / /slimserver/
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip
dont-vary
</Location>
<Location /slimserver1/Default/>
SetOutputFilter proxy-html;DEFLATE
ProxyHTMLURLMap / /slimserver/
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip
dont-vary
</Location>
--
nmizel
------------------------------------------------------------------------
nmizel's Profile: http://forums.slimdevices.com/member.php?userid=997
View this thread: http://forums.slimdevices.com/showthread.php?t=23641