Fetch websocket address from cloud server address
Categories
(Core Graveyard :: Web Replay, enhancement)
Tracking
(firefox74 fixed)
Tracking | Status | |
---|---|---|
firefox74 | --- | fixed |
People
(Reporter: bhackett1024, Assigned: bhackett1024)
References
Details
Attachments
(1 file)
Right now we have a devtools.recordreplay.cloudServer preference, which is the address of a websocket server to connect to when creating a remote replaying process. So far I've just been using this preference as the raw IP of the AWS server listening for connections, but this won't work as we move forward and have multiple servers or bring them up and down at different times.
One way of dealing with this would be to have the cloud server redirect incoming connections as it sees fit. It doesn't seem like this works with websockets though (https://stackoverflow.com/questions/46962881/is-it-possible-to-seamlessly-redirect-websockets) and that managing this from the client is the preferred approach. A simple way of doing this is to have the cloud server address return another address at which the actual cloud connection should be made. This will almost certainly change in the future when we add authentication but seems a good intermediate step for now. The attached patch makes this change and some associated cleanups in connection-worker.js
Assignee | ||
Comment 1•4 years ago
|
||
Pushed by bhackett@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5055248b54ea Fetch websocket address from cloud server address, r=jlast.
Comment 3•4 years ago
|
||
bugherder |
Updated•4 years ago
|
Description
•