From 8207a53113f7752655fde388dca8b0182254b589 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Sun, 25 Jun 2017 12:10:21 -0700 Subject: [PATCH] Adjust buffer size in fast server --- CHANGELOG.md | 1 + example/http-server-fast/http_server_fast.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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(); }