Commit 214d0899 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Merge branch 'master' of https://github.com/akonskarm/nghttp2 into akonskarm-master

parents 31fd707d 9a2e38e0
...@@ -40,7 +40,8 @@ session_tcp_impl::session_tcp_impl( ...@@ -40,7 +40,8 @@ session_tcp_impl::session_tcp_impl(
const std::string &host, const std::string &service, const std::string &host, const std::string &service,
const boost::posix_time::time_duration &connect_timeout) const boost::posix_time::time_duration &connect_timeout)
: session_impl(io_service, connect_timeout), : session_impl(io_service, connect_timeout),
socket_(io_service, tcp::v4()) { socket_(io_service) {
socket_.open(local_endpoint.protocol());
boost::asio::socket_base::reuse_address option(true); boost::asio::socket_base::reuse_address option(true);
socket_.set_option(option); socket_.set_option(option);
socket_.bind(local_endpoint); socket_.bind(local_endpoint);
......
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