Commit 4568081
committed
fix: listen on response close event instead of request close
The req.on('close') event fires when the request body is fully received,
not when the client disconnects. This was causing all requests to be
aborted immediately after parsing the body.
Changed to res.on('close') which properly fires only when the client
actually disconnects before the response is complete.1 parent 76fb059 commit 4568081
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1465 | 1465 | | |
1466 | 1466 | | |
1467 | 1467 | | |
1468 | | - | |
1469 | | - | |
| 1468 | + | |
| 1469 | + | |
1470 | 1470 | | |
1471 | 1471 | | |
1472 | 1472 | | |
| |||
0 commit comments