Adjust buffer size in fast server

This commit is contained in:
Vinnie Falco
2017-06-25 12:10:21 -07:00
parent 723ac8392c
commit 8207a53113
2 changed files with 2 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ Version 68:
* Split common tests to a new project
* Small speed up in fields comparisons
* Adjust buffer size in fast server
API Changes:

View File

@@ -202,7 +202,7 @@ private:
// Fill out the reply to be sent to the client.
response_.set(http::field::content_type, mime_type(target.to_string()));
response_.body.clear();
for (char buf[512]; is.read(buf, sizeof(buf)).gcount() > 0;)
for (char buf[2048]; is.read(buf, sizeof(buf)).gcount() > 0;)
response_.body.append(buf, static_cast<std::size_t>(is.gcount()));
response_.prepare_payload();
}