Commit d1760fe
Expose enableReuseAddr for consumers to set
Summary:
`AsyncServerSocket.h` sets a default of `true` for enableReuseAddr_ [1], which results in sockets being created with `SO_REUSEADDR`. We do not want this to be the case, so this diff exposes a mechanism for proxygen consumers to set this to false. By default I'm keeping it set to `true` for everything, so functionality shouldn't change for existing users.
[1] https://www.internalfb.com/code/fbsource/[114ac0fd701a8746f703eebf3efc3e2fc48569d7]/xplat/folly/io/async/AsyncServerSocket.h?lines=1047
Differential Revision: D90789145
fbshipit-source-id: 9ed25853618aa8626ea608cb3140f21eea0c81fb1 parent f3f4c7e commit d1760fe
File tree
3 files changed
+8
-0
lines changed- proxygen/httpserver
3 files changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
225 | 231 | | |
226 | 232 | | |
227 | 233 | | |
| |||
0 commit comments