Opened 12 years ago

Closed 8 years ago

#1406 closed defect (obsolete)

changing Jabber server does not always connect to the new server

Reported by: sascha_silbe Owned by: tomeu
Priority: Unspecified by Maintainer Milestone: Unspecified
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 (2)

comment:1 Changed 11 years ago by tomeu

  • Version changed from Git as of bugdate to 0.88.x

This has been fixed in master (0.90) as a side effect of http://git.sugarlabs.org/projects/sugar/repos/mainline/commits/770f9003

Moving to 0.88 in case people want to cook up a patch for the old PS

comment:2 Changed 8 years ago by dnarvaez

  • Resolution set to obsolete
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.