file_body buffer size can be configured.

This commit is contained in:
Klemens authored and Klemens Morgenstern committed 2023-02-05 02:57:41 +08:00
1 parent 99bceb5bff
commit 4ff4c79d5b
4 files changed
+17 -6

No files matched your search

@@ -124,9 +124,9 @@ struct basic_file_body<file_win32>
basic_file_body<file_win32>, Fields>& sr,
error_code& ec);
value_type& body_; // The body we are reading from
std::uint64_t pos_; // The current position in the file
char buf_[4096]; // Small buffer for reading
value_type& body_; // The body we are reading from
std::uint64_t pos_; // The current position in the file
char buf_[BOOST_BEAST_FILE_BUFFER_SIZE]; // Small buffer for reading
public:
using const_buffers_type =