Commit fe45405
authored
fix(connect/ws): ensure proxy stream is writable (#2024)
Here the proxy stream is being written, so we need to check if it is
writable ("which means the stream has not been destroyed, errored, or
ended, see
https://nodejs.org/dist/v18.19.0/docs/api/stream.html#writablewritable
).
Fixes #1914
I could reproduce the 'stream.push() after EOF' error in an app, but
unfortunately have no idea how to use it for a reproduction. Hopefully
this patch provides enough inspiration to write a test.1 parent a6e74ad commit fe45405
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
| 259 | + | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| |||
0 commit comments