Bug 4261 - slimserver appears started when it's not in Mac preference pane
: slimserver appears started when it's not in Mac preference pane
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Mac Preference Pane
: 6.5.0
: Macintosh Other
: P2 normal (vote)
: ---
Assigned To: Blackketter Dean
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-09-29 14:28 UTC by Blackketter Dean
Modified: 2008-12-18 11:12 UTC (History)
4 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Blackketter Dean 2006-09-29 14:28:13 UTC
when you install slimserver for the first time on a Mac, it can take up to a minute (!) to start.  Well before this you can click on the Web button in the preference pane, which attempts to open up the web interface, but fails. 

I suggest that the server drop a file somewhere that indicates that it's up and ready for HTTP requests.  Then the preference pane can look for the process running AND that file before encouraging folks to connect to the server.
Comment 1 Chris Owens 2006-10-10 15:10:23 UTC
Dean, for what target would you like this implemented?
Comment 2 KDF 2006-10-24 21:20:30 UTC
noticed this type of problem affects windows as well.  the new slimtray.exe opens the browser once it detects that the http ports are listening.  This too early, as other init processes need to complete before slimserver goes into it's idle loop, processing requests. One possible option is to hold off on http->init until everythign else is done.  The OSX prefPane could then detect the open port just as slimtray.pl does, if it doesn't already.


the patch:

Index: slimserver.pl
===================================================================
--- slimserver.pl       (revision 10468)
+++ slimserver.pl       (working copy)
@@ -346,9 +346,6 @@
           Slim::Utils::UPnPMediaServer::init();
        }
 
-       $log->info("SlimServer HTTP init...");
-       Slim::Web::HTTP::init();
-
        $log->info("Source conversion init..");
        Slim::Player::Source::init();
 
@@ -379,6 +376,9 @@
 
        checkVersion();
 
+       $log->info("SlimServer HTTP init...");
+       Slim::Web::HTTP::init();
+
        # otherwise, get ready to loop
        $lastlooptime = Time::HiRes::time();
 
Comment 3 KDF 2006-10-24 21:47:30 UTC
patch to slimserver.pl in trunk at change 10470.
Comment 4 Ross Levine 2007-06-01 16:17:59 UTC
I'm still seeing this with 6.5.2 - 12047 OS X 10.4.9. I click start SlimServer and instantly I can click web access, which  is blank for about 30 seconds and then says cannot find server. 
Comment 5 KDF 2007-06-01 16:25:14 UTC
The patch has only gone into trunk and may or may not have had any effect.  Testing would have to be done using 7.0a1.  If it works, then perhaps we could port a similar fix to 6.5.3. I expect this will involve a fix in the prefpane itself, which is not something I can do as it is only accessible to those with 10.4.x 
Comment 6 Ross Levine 2007-06-01 17:05:20 UTC
Still seeing this with 7.0a1 - 12181 10.4.9. :(
Comment 7 Chris Owens 2007-10-15 09:59:46 UTC
Dean notes this happens at startup time when SqueezeCenter is very busy and it not yet available for web or streaming requests.  He suggests it be assigned to him for pondering, but left as targeted for 7.0.
Comment 8 Chris Owens 2007-10-23 09:24:00 UTC
Dean is going to do the prefs pane part, but Andy volunteered to write a perl script to check to see if the port is active.
Comment 9 Andy Grundman 2007-11-07 07:13:03 UTC
Over to Dean.
Comment 10 Blackketter Dean 2007-11-07 15:01:39 UTC
Fixed in change 14486.  
Comment 11 Chris Owens 2008-03-07 09:04:09 UTC
This bug is being closed since it was resolved for a version which is now released!  Please download the new version of SqueezeCenter (formerly SlimServer) at http://www.slimdevices.com/su_downloads.html

If you are still seeing this bug, please re-open it and we will consider it for a future release.