mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 08:12:37 +01:00
ircd: Improve this stack buffer for now.
This commit is contained in:
parent
1cede9a21f
commit
1a4c57653b
1 changed files with 9 additions and 3 deletions
|
@ -48,7 +48,7 @@ const auto request_timeout
|
|||
// in a synchronous manner as if each connection had its own thread.
|
||||
ctx::pool request
|
||||
{
|
||||
"request", 1_MiB
|
||||
"request", 256_KiB
|
||||
};
|
||||
|
||||
// Container for all active clients (connections) for iteration purposes.
|
||||
|
@ -226,8 +226,14 @@ bool
|
|||
ircd::client::main()
|
||||
noexcept try
|
||||
{
|
||||
char buffer[8192];
|
||||
parse::buffer pb{buffer, buffer + sizeof(buffer)};
|
||||
const auto header_max{8192};
|
||||
const auto content_max{65536};
|
||||
unique_buffer<mutable_buffer> buffer
|
||||
{
|
||||
header_max + content_max
|
||||
};
|
||||
|
||||
parse::buffer pb{buffer};
|
||||
parse::capstan pc{pb, read_closure(*this)}; do
|
||||
{
|
||||
if(!handle_request(*this, pc))
|
||||
|
|
Loading…
Reference in a new issue