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, Nov 12, 3:52 AM
Unknown Object (File)
Mon, Nov 11, 7:52 PM
Unknown Object (File)
Thu, Nov 7, 4:14 AM
Unknown Object (File)
Thu, Nov 7, 2:27 AM
Unknown Object (File)
Thu, Nov 7, 12:08 AM
Unknown Object (File)
Oct 15 2024, 7:57 PM
Unknown Object (File)
Oct 15 2024, 7:25 PM
Unknown Object (File)
Oct 15 2024, 7:25 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