-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release: 130002.3.1 (based on 13.0.2, version 3.1)
purpose: * ensure that file descriptors are closed, and never leak - if a fd were to leak as the result of the file having been requested by a client and served by httpd, then the underlying file will remain open and cause the OS to prevent the file from being deleted until the process running `serve` terminates potential causes for fd leak: 1) bug in `serve` https://github.com/vercel/serve-handler/blob/6.1.3/src/index.js#L751 summary: - the fd is opened BEFORE checking ETag to conditionally return a 304 Not Modified Response - when this occurs, the fd is never piped to the response, and it is never closed 2) bug in `nodejs` nodejs/node#1180 nodejs/node#1834 summary: - if the client closes the connection before the piped fd stream is fully written to the response, it has been reported that the fd is never closed workaround: https://github.com/jshttp/on-finished#example
- Loading branch information
1 parent
b268b19
commit 1d0def6
Showing
5 changed files
with
64 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"cleanUrls": false, | ||
"renderSingle": false, | ||
"etag": false, | ||
"etag": true, | ||
"symlinks": true, | ||
|
||
"headers": [{ | ||
|