forked from boostorg/beast
Adjust buffer size in fast server
This commit is contained in:
@@ -2,6 +2,7 @@ Version 68:
|
|||||||
|
|
||||||
* Split common tests to a new project
|
* Split common tests to a new project
|
||||||
* Small speed up in fields comparisons
|
* Small speed up in fields comparisons
|
||||||
|
* Adjust buffer size in fast server
|
||||||
|
|
||||||
API Changes:
|
API Changes:
|
||||||
|
|
||||||
|
@@ -202,7 +202,7 @@ private:
|
|||||||
// Fill out the reply to be sent to the client.
|
// Fill out the reply to be sent to the client.
|
||||||
response_.set(http::field::content_type, mime_type(target.to_string()));
|
response_.set(http::field::content_type, mime_type(target.to_string()));
|
||||||
response_.body.clear();
|
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_.body.append(buf, static_cast<std::size_t>(is.gcount()));
|
||||||
response_.prepare_payload();
|
response_.prepare_payload();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user