mirror of
https://github.com/stablyai/orca.git
synced 2026-10-22 08:03:37 +00:00
Fix daemon stream backpressure socket contract
Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -59,7 +59,7 @@ export class DaemonStreamBackpressureQueue {
|
||||
|
||||
for (let index = 0; index < lines.length; index += 1) {
|
||||
const accepted = streamSocket.write(lines[index].line)
|
||||
if (!accepted) {
|
||||
if (accepted === false) {
|
||||
this.deferUntilDrain(clientId, streamSocket, lines.slice(index + 1))
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user