-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't set TCP keepalive on listening sockets
On Mac OS X, it causes the listening socket to be “closed” after the keepalive timeout and future connections to fail with “connection refused” errors. We suspect the same may happen on linux in some circumstances because we see similar errors in CI. For hyper, we switch to use `AddrIncoming::set_keepalive`. It sets TCP keepalive options on sockets returned by `accept` instead of on the listening socket. Tentacle unfortunately does not seem to allow setting options on accepted sockets, so TCP keepalive setting is removed for now.
- Loading branch information
Showing
2 changed files
with
5 additions
and
16 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