Commit 665bff62 authored by Dan Melnic's avatar Dan Melnic Committed by Facebook Github Bot

AsyncServerSocket::bind - call bindSocket with isExistingSocket = false

Summary:
AsyncServerSocket::bind - call bindSocket with isExistingSocket = false

(Note: this ignores all push blocking failures!)

Reviewed By: danobi

Differential Revision: D18144178

fbshipit-source-id: 0c673bb397fabb737f8595dd0453826bb57c826e
parent 2cb34df8
...@@ -382,7 +382,7 @@ void AsyncServerSocket::bind( ...@@ -382,7 +382,7 @@ void AsyncServerSocket::bind(
SocketAddress address(ipAddress.toFullyQualified(), port); SocketAddress address(ipAddress.toFullyQualified(), port);
auto fd = createSocket(address.getFamily()); auto fd = createSocket(address.getFamily());
bindSocket(fd, address, !sockets_.empty()); bindSocket(fd, address, false);
} }
if (sockets_.size() == 0) { if (sockets_.size() == 0) {
throw std::runtime_error( throw std::runtime_error(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment