diff --git a/CHANGELOG.md b/CHANGELOG.md index 7571fd33..e5d1dc48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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: diff --git a/example/http-server-fast/http_server_fast.cpp b/example/http-server-fast/http_server_fast.cpp index 1d461ca9..c6ddc9cf 100644 --- a/example/http-server-fast/http_server_fast.cpp +++ b/example/http-server-fast/http_server_fast.cpp @@ -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(is.gcount())); response_.prepare_payload(); }