Ticket #3279 (closed patch: duplicate)
Opened 6 years ago
Last modified 5 years ago
Improve server reconnect/wakeup method
| Reported by: | anonymous | Owned by: | ijr |
|---|---|---|---|
| Priority: | minor | Milestone: | unknown |
| Component: | mythtv | Version: | head |
| Severity: | medium | Keywords: | wakeup reconnect connect timeout server context |
| Cc: | mythtv-dev@… | Ticket locked: | no |
Description
This patch improves the server reconnect attempt used in mythcontext.
A mythbusydialog is displayed while myth is trying to connect rather than just appearing with a blank background and a log message (dialog is disabled when a mythcontext server connection is made without a gui - eg. with mythshutdown).
The reconnect algorithm is adjusted such that:
- Wakeup command is executed.
- Myth attempts to open a connection to the backend once every second until the reconnect timeout occurs or a connection is established.
- If the reconnect timeout is reached, the wakeup command will be issued again (as before), unless the max number of attempts have been executed.
This is more efficient than before, where the reconnect attempt would not retry until the next wake command is executed.
Attachments
Change History
Changed 6 years ago by devel@…
- Attachment backend_connect.diff added
Changed 6 years ago by devel@…
- Attachment backend-reconnect-180707.diff added
updated patch for server reconnect
comment:1 Changed 5 years ago by Matthew Wire <devel@…>
This is included as part of #4184 which extends the backend reconnect function that mythtv-setup can be configured to start/stop the backend and different commands are used depending on whether the master backend is local or not.
As such, this ticket can be closed.

Mythcontext server reconnect improvements