Opened 16 years ago
Closed 16 years ago
#274 closed defect (fixed)
MythContext::IsConnectedToMaster(void) doesn't work reliably
Reported by: | Paul | Owned by: | Isaac Richards |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | mythtv | Version: | head |
Severity: | low | Keywords: | |
Cc: | Ticket locked: | no |
Description
You can't reliably use MythContext::IsConnectedToMaster?(void) to determine if you have a valid connection to the Master Server because it always returns true after a successful connection has been made even when the Master Server has gone away.
It means you can't use something like:
if (!gContext->IsConnectedToMaster()) gContext->ConnectToMasterServer();
to make sure a connection is still alive.
Paul
Attachments (1)
Note: See
TracTickets for help on using
tickets.
Possible fix - deletes the server socket when the event socket is closed