mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-07 02:28:53 +08:00
Merge branch 'akonskarm-reuse_addr'
This commit is contained in:
@@ -40,7 +40,11 @@ session_tcp_impl::session_tcp_impl(
|
||||
const std::string &host, const std::string &service,
|
||||
const boost::posix_time::time_duration &connect_timeout)
|
||||
: session_impl(io_service, connect_timeout),
|
||||
socket_(io_service, local_endpoint) {}
|
||||
socket_(io_service, tcp::v4()) {
|
||||
boost::asio::socket_base::reuse_address option(true);
|
||||
socket_.set_option(option);
|
||||
socket_.bind(local_endpoint);
|
||||
}
|
||||
|
||||
session_tcp_impl::~session_tcp_impl() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user