Closed FrankChen021 closed 3 months ago
Flushes the buffer once the exception is raised. Or expose a method to check if the size is going to be overflow, if it's, then flushes the buffer.
replace the implentation by using bytebuffer to save memory from the heap
Above exception was observed. The problem is that the buffer keeps the UN-COMPRESSED data, while we check the buffer size (
currentSize
) by the COMPRESSED data.It's a little bit tricky because the buffer size is initialized by the max-request-size which holds the compressed data.