cli-setu 0.2.3 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/supervisor.js +9 -0
package/package.json
CHANGED
package/src/supervisor.js
CHANGED
|
@@ -544,6 +544,15 @@ function flushOutputBuffer() {
|
|
|
544
544
|
|
|
545
545
|
// Still serialized against any send already in flight, so batches
|
|
546
546
|
// themselves can never arrive out of order relative to each other.
|
|
547
|
+
// Real bug found by testing: the Backend used to AWAIT Azure's own
|
|
548
|
+
// sendToAll broadcast (~190-200ms per call, confirmed inherent to
|
|
549
|
+
// Azure Web PubSub's broadcast API, not fixable from our side) before
|
|
550
|
+
// responding here - since this chain won't send its next batch until
|
|
551
|
+
// this fetch() resolves, every Azure call directly delayed the next
|
|
552
|
+
// batch too, compounding into real, visible lag during a burst of PTY
|
|
553
|
+
// output. auth-server.js's /relay/terminal-output now responds
|
|
554
|
+
// immediately and broadcasts to Azure in the background, so this
|
|
555
|
+
// fetch() itself should resolve quickly regardless of Azure's own cost.
|
|
547
556
|
sendInFlight = sendInFlight.then(async () => {
|
|
548
557
|
try {
|
|
549
558
|
await fetch(`${AUTH_SERVER}/relay/terminal-output`, {
|