Opened 14 years ago

Closed 14 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)

mythcontext.diff (619 bytes) - added by Paul 14 years ago.
Possible fix - deletes the server socket when the event socket is closed

Download all attachments as: .zip

Change History (2)

Changed 14 years ago by Paul

Attachment: mythcontext.diff added

Possible fix - deletes the server socket when the event socket is closed

comment:1 Changed 14 years ago by Isaac Richards

Resolution: fixed
Status: newclosed

(In [7180]) Patch from Paul to kill off the command socket if our event socket went away.

Fixes #274.

Note: See TracTickets for help on using tickets.