Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a file descriptor and thread leak in wptserver
Always ensure that wptserve closes file descriptors that it opens for HTTP2 requests. For the WebSocket handler, use Python contexts. This isn't possible for non-WebSocket requests so make sure to close them manually. In addition, when frame.stream_ended always end the stream's thread. The code which spawns the thread assumes this is the case and will forget about the thread as soon as it sees this property. Probably fixes #23905.
- Loading branch information
Showing
1 changed file
with
74 additions
and
65 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