mirror of
https://github.com/matrix-construct/construct
synced 2024-06-11 14:38:57 +02:00
ircd::server: Fix discard buffering.
This commit is contained in:
parent
8e2aef32ef
commit
6d9fb00d8c
|
@ -3234,13 +3234,15 @@ const
|
|||
{
|
||||
assert(request);
|
||||
assert(content_overflow() > 0);
|
||||
assert(content_overflow() <= state.content_read);
|
||||
assert(content_overflow() <= state.content_length);
|
||||
assert(state.content_read >= size(request->in.content));
|
||||
assert(state.content_length >= state.content_read);
|
||||
const size_t remaining
|
||||
{
|
||||
content_overflow() - state.content_read
|
||||
state.content_length - state.content_read
|
||||
};
|
||||
|
||||
assert(remaining <= state.content_length);
|
||||
static char buffer[512];
|
||||
const size_t buffer_max
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue