*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:
parent
a3dc9aeb35
commit
5c8c4cc1dd
|
@ -65,6 +65,7 @@ export default class RPCConnection {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
streamResp.data.data = chunk as unknown as Uint8Array;
|
streamResp.data.data = chunk as unknown as Uint8Array;
|
||||||
|
await new Promise((resolve) => setTimeout(resolve, 15));
|
||||||
that.write(pack(streamResp));
|
that.write(pack(streamResp));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue