Page MenuHomePhabricator

[lib] handle Tunnelbroker messages sequentially
ClosedPublic

Authored by kamil on Apr 22 2024, 5:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jun 11, 11:20 PM
Unknown Object (File)
Mon, Jun 10, 5:28 AM
Unknown Object (File)
Thu, May 23, 3:38 PM
Unknown Object (File)
Thu, May 23, 3:38 PM
Unknown Object (File)
Thu, May 23, 3:38 PM
Unknown Object (File)
Thu, May 23, 3:37 PM
Unknown Object (File)
Thu, May 23, 3:37 PM
Unknown Object (File)
Sat, May 18, 3:01 PM
Subscribers

Details

Summary

This is similar approach to what's implemented on web worker: https://phab.comm.dev/D11299

Test Plan

Connect two devices, send message trough Tunnelbroker and add sleep to processing, make sure each messages are processed in sequence.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Apr 23 2024, 6:43 AM
This revision is now accepted and ready to land.Apr 29 2024, 12:26 AM
lib/tunnelbroker/tunnelbroker-context.js
282–289 ↗(On Diff #39383)

Wondering how this would behave if one of the calls to peerToPeerMessageHandler fails.

lib/tunnelbroker/tunnelbroker-context.js
282–289 ↗(On Diff #39383)

peerToPeerMessageHandler should fail/throw - to confirm message to TB regardless of success or error while processing

kamil requested review of this revision.Apr 29 2024, 4:57 AM
This revision is now accepted and ready to land.Apr 29 2024, 5:31 AM