make bottled http requests response size limit configurable and bump default to 2 MiB

This commit is contained in:
Arvid Norberg
2012-10-19 01:28:47 +00:00
parent 01f70bfd84
commit 8ba970018c
12 changed files with 50 additions and 14 deletions

View File

@@ -116,7 +116,7 @@ void run_test(std::string const& url, int size, int status, int connected
<< " error: " << (ec?ec->message():"no error") << std::endl;
boost::shared_ptr<http_connection> h(new http_connection(ios, cq
, &::http_handler, true, &::http_connect_handler));
, &::http_handler, true, 1024*1024, &::http_connect_handler));
h->get(url, seconds(1), 0, &ps);
ios.reset();
error_code e;