[mythtv-commits] Ticket #12977: Improved Frontend Startup in case of connection problems

MythTV noreply at mythtv.org
Fri Jan 27 20:52:58 UTC 2017


#12977: Improved Frontend Startup in case of connection problems
------------------------------+-----------------------------
 Reporter:  pbennett          |          Owner:  pbennett
     Type:  Developer Task    |         Status:  accepted
 Priority:  minor             |      Milestone:  29.0
Component:  MythTV - General  |        Version:  Master Head
 Severity:  medium            |     Resolution:
 Keywords:                    |  Ticket locked:  0
------------------------------+-----------------------------

Comment (by pbennett):

 Replying to [comment:4 mdean]:
 >  Also, many first-time users tend to put the MythTV backend port into
 the MySQL port box, so any test you do needs to be sure to not crash (or
 cause problems--client or server side) when it hits a non-MySQL port.
 >
 This is a problematic one. If you put the backend port 6543 as the
 database port with the current MythTV the frontend startup just hangs
 forever, with no GUI displayed. It is stuck in some receive logic inside
 the SQL driver trying to open the database. I am not sure the best way to
 fix that. There does not appear to be any timeout ability in the MYSQL
 connect.

 I looked at the other links. the code in [5b3aaea9] has been considerably
 changed since it was added, and I am completely revamping it now. The
 mailing list links with topics around the ping will be completely solved,
 since will be checking a specific port with a QT Socket instead of doing a
 ping.

 I am making some good progress. Opening a socket of the expected port,
 with a short timeout in case of failure, seems to be giving good results
 and I have a frontend page with a progress bar showing what it is doing as
 far as waiting to database to wake up, waiting for database to start,
 waiting for backend to wake up, etc.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/12977#comment:5>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list