Page MenuHomePhabricator

[lib] handle Tunnelbroker messages sequentially
ClosedPublic

Authored by kamil on Mon, Apr 22, 5:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 2, 9:13 PM
Unknown Object (File)
Thu, May 2, 6:54 PM
Unknown Object (File)
Thu, May 2, 12:34 PM
Unknown Object (File)
Thu, May 2, 1:25 AM
Unknown Object (File)
Sat, Apr 27, 9:02 PM
Unknown Object (File)
Sat, Apr 27, 2:12 PM
Unknown Object (File)
Thu, Apr 25, 10:05 AM
Unknown Object (File)
Tue, Apr 23, 1:50 AM
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.Tue, Apr 23, 6:43 AM
This revision is now accepted and ready to land.Mon, Apr 29, 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.Mon, Apr 29, 4:57 AM
This revision is now accepted and ready to land.Mon, Apr 29, 5:31 AM