Commit 29ab096a authored by Dominik Charousset's avatar Dominik Charousset

Fix listen call in asio_multiplexer

parent 74d4ce76
...@@ -76,7 +76,7 @@ error ip_bind(asio_tcp_socket_acceptor& fd, uint16_t port, ...@@ -76,7 +76,7 @@ error ip_bind(asio_tcp_socket_acceptor& fd, uint16_t port,
fd.bind(ep, ec); fd.bind(ep, ec);
if (ec) if (ec)
return sec::cannot_open_port; return sec::cannot_open_port;
fd.listen(ec); fd.listen(asio_tcp_socket_acceptor::max_connections, ec);
if (ec) if (ec)
return sec::cannot_open_port; return sec::cannot_open_port;
return none; return none;
......
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