[Bugs] #1406 UNSP: changing Jabber server does not always connect to the new server

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Sun Sep 20 17:15:16 EDT 2009


#1406: changing Jabber server does not always connect to the new server
------------------------------------------+---------------------------------
    Reporter:  sascha_silbe               |          Owner:  tomeu                      
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  sugar-presence-service     |        Version:  Git as of bugdate          
    Severity:  Minor                      |       Keywords:                             
Distribution:  Unspecified                |   Status_field:  New                        
------------------------------------------+---------------------------------
 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).

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/1406>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list