Page MenuHomePhabricator

[lib] Don't automatically log out on connection issue when using CSAT
ClosedPublic

Authored by tomek on Jan 26 2024, 8:48 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 18, 12:37 AM
Unknown Object (File)
Fri, Oct 18, 12:37 AM
Unknown Object (File)
Fri, Oct 18, 12:36 AM
Unknown Object (File)
Fri, Oct 18, 12:34 AM
Unknown Object (File)
Sep 5 2024, 1:16 PM
Unknown Object (File)
Aug 28 2024, 8:11 PM
Unknown Object (File)
Aug 27 2024, 10:50 PM
Unknown Object (File)
Aug 25 2024, 10:18 AM
Subscribers

Details

Summary

Instead the handler should retry a connection.

Depends on D10834

Test Plan

Set a flag, dispatch connection issue and check if a user won't get logged out.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek requested review of this revision.Jan 26 2024, 9:09 AM

Is this what we want to do for all connection issues, even for my keyserver? Or are there some kinds of connection issues, where if they occur for my keyserver, we'd want to log the user out?

Is this what we want to do for all connection issues, even for my keyserver? Or are there some kinds of connection issues, where if they occur for my keyserver, we'd want to log the user out?

We probably should prefer treating all the keyservers the same. As for the connection issues, I'm wondering if e.g. not_logged_in_error is something from which we can recover - it is set after our socket receives not_logged_in message.

I think yes, we can recover from that. To be honest, it's a weird one... it can only happen if a client attempts to connect with a keyserver socket using an anonymous cookie, but based on the client code that should not be possible. But if it does somehow happen, the solution is just for the client to attempt the login.

tomek requested review of this revision.Jan 31 2024, 7:52 AM

For now I think this makes sense, and I don't want to hold up the stack

This revision is now accepted and ready to land.Feb 3 2024, 9:41 AM