Ticket #1406 (new defect)
changing Jabber server does not always connect to the new server
| Reported by: | sascha_silbe | Owned by: | tomeu |
|---|---|---|---|
| Priority: | Unspecified by Maintainer | Milestone: | Unspecified by Release Team |
| Component: | sugar-presence-service | Version: | 0.88.x |
| Severity: | Minor | Keywords: | |
| Cc: | Distribution/OS: | Unspecified | |
| Bug Status: | New |
Description
presenceservice.py contains the following code:
def RestartServerConnection(self):
"""Stop and restart the server_plugin.
This allows changing jabber servers without restarting Sugar.
"""
if self._server_plugin:
if self._server_plugin.status == CONNECTION_STATUS_CONNECTED:
self._server_plugin.cleanup()
self._server_plugin.start()
As you see it only connects to the new server if there already was a working connection to the previous one. This will cause a significant delay (up to 5 minutes) before connecting to the new server as we need to wait for the retry timeout to expire (encountered up to 160s myself during testing).
Change History
Note: See
TracTickets for help on using
tickets.
