projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
AsyncServerSocket: more tries for binding to a port
[folly.git]
/
folly
/
io
/
async
/
AsyncServerSocket.cpp
diff --git
a/folly/io/async/AsyncServerSocket.cpp
b/folly/io/async/AsyncServerSocket.cpp
index b48129c4ec77d683107ba8e3a270311fa21a5604..8520f464f47d4b9c847eb8a50239586da9ef705a 100644
(file)
--- a/
folly/io/async/AsyncServerSocket.cpp
+++ b/
folly/io/async/AsyncServerSocket.cpp
@@
-396,7
+396,7
@@
void AsyncServerSocket::bind(uint16_t port) {
}
};
- const int kNumTries = 5;
+ const int kNumTries =
2
5;
for (int tries = 1; true; tries++) {
// Prefer AF_INET6 addresses. RFC 3484 mandates that getaddrinfo
// should return IPv6 first and then IPv4 addresses, but glibc's