Skip to content

Commit f36b485

Browse files
leecoder이충우
authored and
이충우
committed
Fixes for ci build errors
1 parent 2174385 commit f36b485

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

boost/network/protocol/stream_handler.hpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ namespace boost { namespace network {
4444
}
4545

4646
stream_handler(boost::asio::io_service& io, boost::shared_ptr<boost::asio::ssl::context> ctx = boost::shared_ptr<boost::asio::ssl::context>()) {
47-
tcp_sock_ = boost::make_shared< tcp_socket >(io);
47+
tcp_sock_ = boost::make_shared< tcp_socket >(boost::ref(io));
4848
ssl_enabled = false;
4949
if(ctx) {
5050
/// SSL is enabled
51-
ssl_sock_ = boost::make_shared< ssl_socket >(io, *ctx);
51+
ssl_sock_ = boost::make_shared< ssl_socket >(boost::ref(io),
52+
boost::ref(*ctx));
5253
ssl_enabled = true;
5354
}
5455
}
@@ -182,4 +183,4 @@ namespace boost { namespace network {
182183
}
183184
}
184185

185-
#endif
186+
#endif

libs/network/test/http/client_get_timeout_test.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(http_get_test_timeout_1_0, client, client_types) {
2222
}
2323

2424
BOOST_AUTO_TEST_CASE_TEMPLATE(http_get_test_timeout_with_options, client, client_types) {
25-
typename client::request request("http://commondatastorage.googleapis.com/cpp-netlib-downloads/0.11.0/cpp-netlib-0.11.0.zip");
25+
typename client::request request("http://cznic.dl.sourceforge.net/project/boost/boost/1.55.0/boost_1_55_0.tar.bz2");
2626
typename client::response response;
2727
typename client::options options;
2828
client client_(options.timeout(1));
@@ -33,7 +33,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(http_get_test_timeout_with_options, client, client
3333
#ifdef BOOST_NETWORK_ENABLE_HTTPS
3434

3535
BOOST_AUTO_TEST_CASE_TEMPLATE(https_get_test_timeout_with_options, client, client_types) {
36-
typename client::request request("https://codeload.github.com/cpp-netlib/cpp-netlib/zip/0.11-devel");
36+
typename client::request request("https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.8.2.tar.bz2");
3737
typename client::response response;
3838
typename client::options options;
3939
client client_(options.timeout(1));

0 commit comments

Comments
 (0)