Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure files in sendfile calls are closed #78

Merged
merged 1 commit into from
Aug 12, 2023
Merged

Ensure files in sendfile calls are closed #78

merged 1 commit into from
Aug 12, 2023

Conversation

mtrudel
Copy link
Owner

@mtrudel mtrudel commented Aug 12, 2023

Longstanding bug. Fixes mtrudel/bandit#209

@mtrudel mtrudel merged commit 45e7b51 into main Aug 12, 2023
@mtrudel mtrudel deleted the fix_file_leak branch August 12, 2023 18:16
mtrudel added a commit to mtrudel/bandit that referenced this pull request Oct 6, 2023
Also fix file always being closed after h2 sendfile file call, as in mtrudel/thousand_island#78
mtrudel added a commit to mtrudel/bandit that referenced this pull request Oct 9, 2023
* Record HTTP/1 method in req

* Support HEAD, 204, 304 quelling for HTTP/1 responses

* Refactor h2 send_file logic

Also fix file always being closed after h2 sendfile file call, as in mtrudel/thousand_island#78

* Record HTTP/2 method in req

* Add content-length header to HTTP/2 sendfile responses

* Support HEAD, 204, 304 quelling for HTTP/2 responses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Too many open files
1 participant