We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e031fa7 commit db5eb39Copy full SHA for db5eb39
lib/rpc/server.cc
@@ -32,7 +32,9 @@ struct server::impl {
32
suppress_exceptions_(false) {
33
auto ep = tcp::endpoint(ip::address::from_string(address), port);
34
acceptor_.open(ep.protocol());
35
+#ifndef _WIN32
36
acceptor_.set_option(tcp::acceptor::reuse_address(true));
37
+#endif // !_WIN32
38
acceptor_.bind(ep);
39
acceptor_.listen();
40
}
@@ -45,7 +47,9 @@ struct server::impl {
45
47
46
48
auto ep = tcp::endpoint(tcp::v4(), port);
49
50
51
52
53
54
55
0 commit comments