Set http request timeout to 5 seconds

Fixes random test failures in test_http_connection.
This commit is contained in:
d_komarov 2018-05-16 23:05:25 +03:00 committed by Arvid Norberg
parent 243353a144
commit 96700c15ff
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ void run_test(std::string const& url, int size, int status, int connected
boost::shared_ptr<http_connection> h(new http_connection(ios boost::shared_ptr<http_connection> h(new http_connection(ios
, res, &::http_handler, true, 1024*1024, &::http_connect_handler)); , res, &::http_handler, true, 1024*1024, &::http_connect_handler));
h->get(url, seconds(1), 0, &ps, 5, "test/user-agent", boost::none, 0, auth); h->get(url, seconds(5), 0, &ps, 5, "test/user-agent", boost::none, 0, auth);
ios.reset(); ios.reset();
error_code e; error_code e;
ios.run(e); ios.run(e);