Page MenuHomePhabricator

[keyserver] Factor out fetchDataForSocketInit
ClosedPublic

Authored by ashoat on Jun 8 2024, 3:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Sep 18, 5:52 PM
Unknown Object (File)
Wed, Sep 11, 11:22 AM
Unknown Object (File)
Wed, Sep 11, 11:22 AM
Unknown Object (File)
Wed, Sep 11, 11:20 AM
Unknown Object (File)
Wed, Sep 11, 11:19 AM
Unknown Object (File)
Thu, Sep 5, 11:16 PM
Unknown Object (File)
Sep 3 2024, 8:10 PM
Unknown Object (File)
Aug 30 2024, 3:17 PM
Subscribers
None

Details

Summary

We want to use this in a new endpoint, so I'm factoring it out. This endpoint will be used for recovering from a socket crash loop.

Depends on D12362

Test Plan

I tested socket initialization before and after this and confirmed it still worked correctly.

Note that this is a pure move diff, except for some changes to the pattern of awaits in handleInitialClientSocketMessage, now that fetchDataForSocketInit happens before these three promises start:

processClientResponses(viewer, clientResponses),
isCookieMissingSignedIdentityKeysBlob(viewer.cookieID),
isCookieMissingOlmNotificationsSession(viewer),

I think it's safe to wait until after handleInitialClientSocketMessage to call these.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable