[mythtv-commits] Ticket #7696: no delays between reconnect attempts to master backend
MythTV
mythtv at cvs.mythtv.org
Wed Dec 2 14:50:51 UTC 2009
#7696: no delays between reconnect attempts to master backend
-------------------------------------+--------------------------------------
Reporter: bam <mybigspam@…> | Owner: ijr
Type: defect | Status: new
Priority: major | Milestone: unknown
Component: MythTV - General | Version: 0.22-fixes
Severity: medium | Mlocked: 0
-------------------------------------+--------------------------------------
If master backend is not available and you run frontend from terminal, you
can see that no delays is made between reconnect attempts to master
backend:
{{{
2009-11-18 20:54:45.388 Loading menu theme from
/usr/share/mythtv/themes/defaultmenu//mainmenu.xml
2009-11-18 20:54:45.411 Found mainmenu.xml for theme 'Retro'
2009-11-18 20:54:46.656 MythContext: Connecting to backend server:
192.168.1.2:6543 (try 1 of 15)
master_wake
2009-11-18 20:54:46.795 MythContext: Connecting to backend server:
192.168.1.2:6543 (try 2 of 15)
}}}
This is due to incorrect timeout calculation. The fix:
{{{
--- libs/libmyth/mythcontext.cpp (revision 22942)
+++ libs/libmyth/mythcontext.cpp (working copy)
@@ -1658,7 +1658,7 @@
}
myth_system(WOLcmd);
- sleepms = WOLsleepTime * 1000000;
+ sleepms = WOLsleepTime * 1000;
}
serverSock->DownRef();
@@ -1671,7 +1671,7 @@
}
if (sleepms)
- usleep(sleepms / 1000);
+ usleep(sleepms * 1000);
}
if (we_attempted_wol)
}}}
Also please see #7603.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7696>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list