*add 15 ms delay (found via trial/error) on stream writes since there appears to be a event loop based backlog preventing some streams from being processed, causing client detected timeouts

This commit is contained in:
Derrick Hammer 2022-09-19 16:48:25 -04:00
parent a3dc9aeb35
commit 5c8c4cc1dd
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 0 deletions

View File

@ -65,6 +65,7 @@ export default class RPCConnection {
break;
}
streamResp.data.data = chunk as unknown as Uint8Array;
await new Promise((resolve) => setTimeout(resolve, 15));
that.write(pack(streamResp));
}