mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 23:40:57 +01:00
ircd::server: Tweak assertions.
This commit is contained in:
parent
43f8bee68a
commit
fe0bffae98
1 changed files with 1 additions and 2 deletions
|
@ -3316,7 +3316,6 @@ ircd::server::tag::read_chunk_dynamic_head(const const_buffer &buffer,
|
|||
|
||||
state.chunk_read += addl_head_bytes;
|
||||
const auto head_length{state.chunk_read};
|
||||
assert(state.content_read + head_length == state.content_length + state.chunk_read);
|
||||
state.chunk_read = 0;
|
||||
|
||||
// Window on any data in the buffer after the head.
|
||||
|
@ -3343,7 +3342,6 @@ ircd::server::tag::read_chunk_dynamic_head(const const_buffer &buffer,
|
|||
|
||||
// Increment the content_length to now include this chunk
|
||||
state.content_length += state.chunk_length;
|
||||
assert(state.content_length == state.content_read + state.chunk_length);
|
||||
|
||||
// Allocate the chunk content on the vector.
|
||||
//TODO: maxalloc
|
||||
|
@ -3430,6 +3428,7 @@ ircd::server::tag::read_chunk_dynamic_content(const const_buffer &buffer,
|
|||
state.content_read += addl_content_read;
|
||||
assert(state.chunk_read <= state.content_read);
|
||||
assert(state.chunk_read <= state.chunk_length);
|
||||
assert(state.content_length >= state.content_read);
|
||||
|
||||
// Invoke the user's optional progress callback; this function
|
||||
// should be marked noexcept for the time being.
|
||||
|
|
Loading…
Reference in a new issue