Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Copy the host name to avoid a dangling reference to a temporary reque…
…st object.

fixes #482
  • Loading branch information
joshuanapoli committed Mar 11, 2015
commit c3db303878fe2ca26267efefbc516d8713892cf1
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ struct http_async_connection
resolve_(
resolver_, host(request), port_,
request_strand_.wrap(boost::bind(
&this_type::handle_resolved, this_type::shared_from_this(), host(request), port_,
&this_type::handle_resolved, this_type::shared_from_this(), string_type(host(request)), port_,
get_body, callback, generator, boost::arg<1>(), boost::arg<2>())));
if (timeout_ > 0) {
timer_.expires_from_now(boost::posix_time::seconds(timeout_));
Expand Down