Page MenuHomePhabricator

[web] update session creation code to handle versioning
ClosedPublic

Authored by kamil on Apr 8 2024, 7:25 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 24, 11:05 AM
Unknown Object (File)
Sun, Nov 24, 7:27 AM
Unknown Object (File)
Sun, Nov 3, 8:12 AM
Unknown Object (File)
Oct 12 2024, 10:23 PM
Unknown Object (File)
Oct 12 2024, 10:23 PM
Unknown Object (File)
Oct 12 2024, 10:23 PM
Unknown Object (File)
Oct 12 2024, 10:23 PM
Unknown Object (File)
Oct 12 2024, 10:23 PM
Subscribers

Details

Summary

This code:

  1. Updates contentInboundSessionCreator to decide whether to accept new or keep old session depending on sessionVersion
  2. Updates contentOutboundSessionCreator to return the session version (right now by default we override session and bump counter).
  3. Update Tunnelbroker message type to send sessionVersion along with init message

Depends on D11583

Test Plan
  1. Make sure session creation works
  2. Outbound session creation cause bumping counter
  3. Inbound session creation success or throw an appropriate error (tested all cases)

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage