forked from valyala/fasthttp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Close new connections after 5s in closeIdleConns
When calling closeIdleConns() also close new connections that haven't received any data within 5 seconds. Some applications open new connections but don't send anything and keep them as keep-alive for potential future requests. We don't want to keeping hanging on these when shutting down a server.
- Loading branch information
1 parent
0ac90c1
commit dbc2733
Showing
1 changed file
with
18 additions
and
8 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