Menu

#66 Logout after lost connection

V3.0
closed-fixed
Interface (24)
2
2010-07-11
2010-03-01
No

In case connection is lost the login screen is showed again. If user press cancel it turns back to the main roster. The cancel action has to be : cancel the login and let user to login again manually, exactly like it works in gtalk.

Discussion

  • Ivan Čukić

    Ivan Čukić - 2010-05-23

    This is rather tricky - PsiAccount class is not meant to be able to change accounts (it was supposed to be one instance per account), so to achieve that, we opened a Pandora's box of consequences.

    Cancelling the reconnection doesn't work for some reason, I'll try to see why again.

    But if I don't succeed, consider the following /solutions/
    1) Try to return the previous behaviour - not to return the login screen on connection error
    2) Remove the cancel button

     
  • Andrea Bodrati

    Andrea Bodrati - 2010-05-26

    Let's follow n. 1) : in case of connection error do not return to login screen

     
  • Ivan Čukić

    Ivan Čukić - 2010-06-02

    Can you test and see what goes in the output after (in the following line)
    YaLoginPage::disconnected

    it should be a number and a string.

    I'm not getting a connection error even when I unplug the network cable...

     
  • Andrea Bodrati

    Andrea Bodrati - 2010-06-09

    When I get disconnected at login time I get :

    -1 "XML Parsing Error"

     
  • Ivan Čukić

    Ivan Čukić - 2010-06-09

    I was hoping that -1 will be something else.

    I'll put filtering on the status text, so if there is another string you get when connection is lost, just post it here.

     
  • Andrea Bodrati

    Andrea Bodrati - 2010-06-13

    Have you updated the code ? I'm still getting the same result

     
  • Ivan Čukić

    Ivan Čukić - 2010-06-15

    Can you test again? I went for whitelisting - only show the login page if there is no error (err string empty)

     
  • Andrea Bodrati

    Andrea Bodrati - 2010-06-18

    Still the same problem :
    -1 "XML Parsing Error"
    Seems that is is a "timeout" problem while retriving the social data or roster data since after it tries again 2 or 3 times it works.
    It also seems to work better than before (less connection errors"

     
  • Nobody/Anonymous

    And it still returns to the login window in that case?

     
  • Andrea Bodrati

    Andrea Bodrati - 2010-06-18

    No it just shows a partial contact list

     
  • Nobody/Anonymous

    hopefully it now works as expected

     
  • Andrea Bodrati

    Andrea Bodrati - 2010-07-11

    Works great now

     
  • Andrea Bodrati

    Andrea Bodrati - 2010-07-11
    • status: open --> closed-fixed
     

Log in to post a comment.