HomePhabricator
Diffusion Comm 4735f83cc1cd

[lib][native] Make cancellation work for keyserver session recovery

Description

[lib][native] Make cancellation work for keyserver session recovery

Summary:
Cancellation for an authoritative keyserver session recovery will result in SET_NEW_SESSION getting called, since resolveKeyserverSessionInvalidation will return null.

In later diffs, we'll introduce a "connection issue" for non-authoritative keyserver session recovery. In that case, cancellation should just result in a new recovery being attempted.

Depends on D11222

Test Plan:
In addition to the plan described here: https://gist.github.com/Ashoat/75ab690d5c53cdd68a51b02e03e27c58

I also tested by adding a cancel() call and confirming that it made session recovery fail

Reviewers: inka, tomek

Reviewed By: tomek

Differential Revision: https://phab.comm.dev/D11223

Details

Provenance
ashoatAuthored on Feb 13 2024, 12:30 PM
Reviewer
tomek
Differential Revision
D11223: [lib][native] Make cancellation work for keyserver session recovery
Parents
rCOMMdfce845aa066: [lib] Don't cancel an auth that the keyserver completes
Branches
Unknown
Tags
Unknown