-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make it possible to disable SO_REUSEADDR in folly::AsyncServerSocket
Summary: Discussion thread: https://fb.workplace.com/groups/560979627394613/permalink/2764923823666838/ It's unfortunately possible that TW Agent assign same port to 2 stacked TW task, due to some race condition when those tasks restarted about the same time. We would like to disable SO_REUSEADDR so that when above scenario happen `AsyncServerSocket::bind` throws exception. Reviewed By: Gownta Differential Revision: D49623771 fbshipit-source-id: b40dfbe7c7ec62d18ad1f0d292fd31099c8705e1
- Loading branch information
1 parent
c3f2f55
commit 9e168d6
Showing
3 changed files
with
73 additions
and
1 deletion.
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