Skip to content

Commit e76bb29

Browse files
committed
Update normal_delegate.ipp
1 parent 2d69fef commit e76bb29

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

boost/network/protocol/http/client/connection/normal_delegate.ipp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ boost::network::http::impl::normal_delegate::normal_delegate(
1919
: service_(service) {}
2020

2121
void boost::network::http::impl::normal_delegate::connect(
22-
asio::ip::tcp::endpoint &endpoint, std::string host,
22+
asio::ip::tcp::endpoint &endpoint, std::string host, boost::uint16_t source_port,
2323
function<void(system::error_code const &)> handler) {
2424

2525
// TODO(dberris): review parameter necessity.
2626
(void)host;
27-
28-
socket_.reset(new asio::ip::tcp::socket(service_));
27+
28+
socket_.reset(new asio::ip::tcp::socket(service_, asio::ip::tcp::endpoint(asio::ip::tcp::v4(), source_port)));
2929
socket_->async_connect(endpoint, handler);
3030
}
3131

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy