-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The main problem with current implementation of HTTP server is it's cooperative scheduling. To control connections we need invent something that will periodically checks open connections and close idles with exceeded timeout. In proposed implementation we close idle connections with exceeded idle_timeout in synchronous manner - before start processing a new connection. In comparison to other solutions (like running checking function in a separate fiber) closing connections synchronously is much easier to implement and don't make module complex. Fixes #137
- Loading branch information
Showing
3 changed files
with
62 additions
and
0 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
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