0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 23:14:13 +01:00

ircd: Improve this stack buffer for now.

This commit is contained in:
Jason Volk 2017-10-11 18:16:10 -07:00
parent 1cede9a21f
commit 1a4c57653b

View file

@ -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))