Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3361070
D10946.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
938 B
Referenced Files
None
Subscribers
None
D10946.diff
View Options
diff --git a/lib/types/socket-types.js b/lib/types/socket-types.js
--- a/lib/types/socket-types.js
+++ b/lib/types/socket-types.js
@@ -498,6 +498,9 @@
+lateResponses: $ReadOnlyArray<number>,
+unreachable: boolean,
+connectionIssue: ?ConnectionIssue,
+ // When this is flipped to true, a session recovery is attempted
+ // This can happen when the keyserver invalidates the session
+ +sessionRecoveryInProgress: boolean,
};
export const connectionInfoValidator: TInterface<ConnectionInfo> =
tShape<ConnectionInfo>({
@@ -518,6 +521,7 @@
'not_logged_in_error',
]),
),
+ sessionRecoveryInProgress: t.Boolean,
});
export const defaultConnectionInfo: ConnectionInfo = {
status: 'connecting',
@@ -525,6 +529,7 @@
lateResponses: [],
unreachable: false,
connectionIssue: null,
+ sessionRecoveryInProgress: false,
};
export const setConnectionIssueActionType = 'SET_CONNECTION_ISSUE';
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 25, 3:10 PM (19 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2580255
Default Alt Text
D10946.diff (938 B)
Attached To
Mode
D10946: [lib] Introduce sessionRecoveryInProgress to ConnectionInfo
Attached
Detach File
Event Timeline
Log In to Comment