[mythtv-commits] mythtv commit: r23397 by markk

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Sun Jan 31 12:52:56 UTC 2010


      Author: markk
        Date: 2010-01-31 12:52:56 +0000 (Sun, 31 Jan 2010)
New Revision: 23397
   Changeset: http://svn.mythtv.org/trac/changeset/23397

Modified:

   trunk/mythtv/libs/libmythdb/msocketdevice.cpp
   trunk/mythtv/libs/libmythdb/msocketdevice.h
   trunk/mythtv/libs/libmythdb/msocketdevice_unix.cpp
   trunk/mythtv/libs/libmythdb/msocketdevice_win.cpp
   trunk/mythtv/libs/libmythdb/mythsocket.cpp

Log:

Add TCP keepalive to MythSocket connections. Patch from Jeff Lu with
small modification suggested by Paul Kendall.

In summary, broken connections should now be closed gracefully after a
system specific timeout. For improved usability the timeout should
probably be reduced.

I think this should still be the fallback for broken connections - a
complete solution would include a 'hearbeat' monitor between
frontends/backends, as has been proposed before, that would detect
broken connections in a timely manner (although, thinking about it, I'm
not sure what additional functionality that provides!).

Closes #7839. See the original ticket for full details.





More information about the mythtv-commits mailing list