mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-13 08:02:47 +00:00
fix: flush proxied responses before the dev supervisor closes the client (#11530)
* fix: flush proxied responses before the dev supervisor closes the client Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * chore: shorten dev supervisor close-path comment Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
e76781cc27
commit
cefb195376
@@ -339,8 +339,12 @@ class Target {
|
||||
client.destroy()
|
||||
upstream.destroy()
|
||||
}
|
||||
// An upstream close must not destroy the client: `destroy` drops bytes still queued
|
||||
// toward a slow client, truncating the response body. `pipe` already ends the client
|
||||
// once those bytes are flushed.
|
||||
upstream.on('error', teardown)
|
||||
upstream.on('close', teardown)
|
||||
client.on('error', teardown)
|
||||
upstream.on('close', () => this.liveSockets.delete(client))
|
||||
client.on('close', teardown)
|
||||
},
|
||||
(err) => {
|
||||
|
||||
Reference in New Issue
Block a user