[mythtv-commits] Ticket #12215: RemoteFile::FindFile doesn't work with non-standard port

MythTV noreply at mythtv.org
Fri Jul 18 06:51:32 UTC 2014


#12215: RemoteFile::FindFile doesn't work with non-standard port
----------------------------------+-------------------------
     Reporter:  jyavenard         |      Owner:  paulh
         Type:  Developer Task    |     Status:  new
     Priority:  major             |  Milestone:  0.28
    Component:  MythTV - General  |    Version:  Unspecified
     Severity:  medium            |   Keywords:
Ticket locked:  0                 |
----------------------------------+-------------------------
 The problem in RemoteFile::FindFile is actually two folds.

 1- It will only work with default port value (6543). a Myth URL typically
 contains an IP address rather than a myth identifier. As such, you can't
 determine the settings for connecting to a remote backend from an IP
 address. So it always uses the default 6543 port (that and GetMythURL is
 called with an argument of 0, which means default port.

 2- Is more of an architectural issue.
 For all tasks related to communication between FE and BE, the MBE has
 acted as a proxy should the FE attempts to retrieve data from a SBE.

 The general FE, MBE, SBE architecture being:
 {{{
        SBE1
         /
 FE --> MBE --> SBE 2
         \
        SBE3
 }}}

 RemoteFile::FindFile breaks that paradigm.
 When searching for a file over all the BEs, it attempts to find the file
 on the MBE and if it can't find it, query the DB to retrieve information
 about all the SBEs.

 It should be up to the MBE to perform that task should it not find the
 file locally.

 The FE shouldn't query the DB directly (and in the long term, the FE
 should never query the DB ever but that's subject to another task).

--
Ticket URL: <https://code.mythtv.org/trac/ticket/12215>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list