Opened 10 years ago
Closed 10 years ago
#12215 closed Developer Task (Fixed)
RemoteFile::FindFile doesn't work with non-standard port
Reported by: | JYA | Owned by: | paulh |
---|---|---|---|
Priority: | major | Milestone: | 0.28 |
Component: | MythTV - General | Version: | Master Head |
Severity: | medium | Keywords: | |
Cc: | Stuart Auchterlonie | Ticket locked: | no |
Description
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).
Change History (3)
comment:1 Changed 10 years ago by
comment:2 Changed 10 years ago by
Cc: | Stuart Auchterlonie added |
---|
This is biting me, because i run master on a non standard port and 0.27 on the standard port. ie 2 backends on the one server
comment:3 Changed 10 years ago by
Resolution: | → Fixed |
---|---|
Status: | new → closed |
Version: | Unspecified → Master Head |
I believe this has already been fixed
please re-assign it to me if you don't want or can't do it
Thanks