[mythtv-commits] Ticket #7839: Add TCP keepalive to MythSocket connections
MythTV
mythtv at cvs.mythtv.org
Sat Jan 2 05:14:30 UTC 2010
#7839: Add TCP keepalive to MythSocket connections
----------------------------------------+-----------------------------------
Reporter: Jeff Lu <jll544@…> | Owner: ijr
Type: enhancement | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - General | Version: head
Severity: medium | Mlocked: 0
----------------------------------------+-----------------------------------
Attached patch adds TCP keepalive to MythSocket connections. Doing so
ensures that idle sockets are closed after the connection is broken.
Two examples where keepalives allow Myth to recover gracefully:
1) Master backend has HW crash or reboot, and slaves never reconnect
because their MBE sockets never closed.
2) Frontend watching LiveTV has HW crash or reboot, and backend never
stops recording LiveTV because control socket never closed.
By default, keepalives start after 120 idle minutes, so recovery could
take at least that long (Linux defaults add up to ~137 minutes).
Keepalive timing is configurable but not in a consistent way across
different platforms. For linux: http://tldp.org/HOWTO/TCP-Keepalive-
HOWTO/usingkeepalive.html
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7839>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list