mirror of
https://github.com/boostorg/beast.git
synced 2025-08-03 14:54:32 +02:00
Adjust buffer size in fast server
This commit is contained in:
@@ -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:
|
||||
|
||||
|
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user