In #278 we implemented a check to make write operations fail if they attempt to write packets bigger than max_buffer_size. However, this is checked after the buffer is resized. This yields the correct user-facing behavior, but doesn't actually constrain memory. The correct implementation is a little bit more involved, and should go together with #279.
In #278 we implemented a check to make write operations fail if they attempt to write packets bigger than max_buffer_size. However, this is checked after the buffer is resized. This yields the correct user-facing behavior, but doesn't actually constrain memory. The correct implementation is a little bit more involved, and should go together with #279.