Posts: 141
Joined: Nov 2009
Reputation:
3
muggi
Senior Member
Posts: 141
Hi,
first here is my setup:
XBMC Live (pre Eden 20 May Build from Git)- Mysql Database server
Enigma2 Satelite Reciever
ATV2 (Nightly 16 May) for streaming TV from tuxbox source and
share mysql Libary from server.....
It works proper when my server is online.
But if the server is offline (because i want only to stream TV with ATV2) XBMC slow´s down or freeze.
I check the log files. The Problem is XBMC tries to connect to the mysql server for a lot of times..... and this is the performace eater......
is there a possibility to define a timeout if there is no server avaiable?
_______________________________________________
CASE: Silverstone with Imon LCD/ Harmony ONE
BOARD: Zotac IONITX 330 D-E / 6 Terrabytes
NAS: Synology Diskstation 8TB RAID5
Software: XBMC Live Skin: Modded Confluence AppleTV2: XBMC....rocks
KARATELIGHT
Posts: 35
Joined: Apr 2010
Reputation:
0
I can confirm that I have the same issue with the latest official on iOS 4.1. At home I'm using a MySQL-server and stream movies over SMB. But I also have added a local folder on my iPad with some movies I want to bring on a trip. XBMC won't start without me removing the mysqö-settings in the advanced settings xml file.
Posts: 42
Joined: Jan 2011
Reputation:
0
I might be about to make n ass of myself but let me see if I understand the question. You set xbmc up to connect to an external database and your wondering why if you then turn that database off your xbmc doesn't work? If that is your question I would then have to ask if you remove the power plug from the atv2 your running xbmc on does it resolve the issue?
Posts: 77
Joined: Feb 2011
Reputation:
0
I would suggest changing the timeout period for your iPad. I'm not sure how to do this though but I'm sure there is info in the WIKI.
Posts: 4,137
Joined: Jul 2009
Reputation:
48
amet
Retired Team-Kodi Member
Posts: 4,137
there is no way to set a time-out for mysql DB, and I think there never will be
Posts: 31,445
Joined: Jan 2011
Set two different profiles, one with mysql DB and one without. Set XBMC to open log-in screen by default. Just find a skin were you can do all these options, since no one wants to restore the shutdown menu for the iOS builds even though everything is now untethered, thus no log-off button.
However, the long freeze should be treated as a bug IMO. Having to ssh in and force quit or unplug the unit is a silly way to deal with a disconnected mysql server.
For iPhones and iPads this is an even bigger problem, since they will be going in and out of their local network often.
Posts: 854
Joined: May 2007
Reputation:
6
Numus
Posting Freak
Posts: 854
One way around this would be to code in a backup database. Attempt to ping the mysql server (before connection attempts) and if it comes back refused on unable to connect, default back to local database instead of just going right for a connection and waiting for a time out... Granted this is probably very specialized and wont get developer consideration without a greater demand.
Posts: 141
Joined: Nov 2009
Reputation:
3
muggi
Senior Member
Posts: 141
Hi
but my opinion is, when a application has a function to connect to network ports, there must be also a function wich handle if the connection isn´t available!
_______________________________________________
CASE: Silverstone with Imon LCD/ Harmony ONE
BOARD: Zotac IONITX 330 D-E / 6 Terrabytes
NAS: Synology Diskstation 8TB RAID5
Software: XBMC Live Skin: Modded Confluence AppleTV2: XBMC....rocks
KARATELIGHT