output/httpd: move buffer to stack
This commit is contained in:
parent
e861d4f83d
commit
ff3d8509ac
|
@ -141,11 +141,6 @@ private:
|
|||
boost::intrusive::list<HttpdClient,
|
||||
boost::intrusive::constant_time_size<true>> clients;
|
||||
|
||||
/**
|
||||
* A temporary buffer for the ReadPage() function.
|
||||
*/
|
||||
std::byte buffer[32768];
|
||||
|
||||
/**
|
||||
* The maximum number of clients connected at the same time.
|
||||
*/
|
||||
|
|
|
@ -157,6 +157,8 @@ HttpdOutput::ReadPage() noexcept
|
|||
unflushed_input = 0;
|
||||
}
|
||||
|
||||
std::byte buffer[32768];
|
||||
|
||||
size_t size = 0;
|
||||
do {
|
||||
size_t nbytes = encoder->Read(buffer + size,
|
||||
|
|
Loading…
Reference in New Issue