Skip to content

Commit 9e4899e

Browse files
committed
Confirming that port is being reported properly in the test, cleaning up remaining debugging remnants.
1 parent 5d60c95 commit 9e4899e

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

boost/network/protocol/http/impl/http_async_connection.hpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,7 @@ namespace boost { namespace network { namespace http { namespace impl {
163163
boost::asio::placeholders::error
164164
)));
165165
} else {
166-
boost::system::system_error error(
167-
ec ? ec : boost::asio::error::host_not_found
168-
);
166+
boost::system::system_error error(ec ? ec : boost::asio::error::host_not_found);
169167
version_promise.set_exception(boost::copy_exception(error));
170168
status_promise.set_exception(boost::copy_exception(error));
171169
status_message_promise.set_exception(boost::copy_exception(error));
@@ -244,8 +242,6 @@ namespace boost { namespace network { namespace http { namespace impl {
244242
}
245243

246244
void parse_version() {
247-
std::cerr << '\n';
248-
249245
logic::tribool parsed_ok;
250246
typename boost::iterator_range<typename buffer_type::const_iterator> result_range;
251247
fusion::tie(parsed_ok, result_range) = response_parser_.parse_until(

boost/network/protocol/http/policies/async_resolver.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,6 @@ namespace boost { namespace network { namespace http { namespace policies {
7979
resolver_iterator endpoint_iterator
8080
)
8181
{
82-
if (ec) {
83-
once_resolved(ec, std::make_pair(endpoint_iterator,resolver_iterator()));
84-
return;
85-
}
86-
8782
typename endpoint_cache::iterator iter;
8883
bool inserted = false;
8984
if (!ec && cache_resolved_) {

libs/network/test/http_1_0_test.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(http_get_test_timeout, T, tag_types) {
4444
typename client::request request("http://localhost:12121/");
4545
client client_;
4646
typename client::response response_;
47+
boost::uint16_t port_ = port(request);
48+
BOOST_CHECK_EQUAL ( 12121, port_ );
4749
BOOST_CHECK_THROW ( response_ = client_.get(request), boost::system::system_error );
4850
}
4951

0 commit comments

Comments
 (0)