Fix StreamPeerGZIP::finish() internal buffer size usage

Fixes #97201

Instead of using and arbitrary fixed size for the internal buffer,
the remaining available bytes of the internal `RingBuffer` is used.

Also add unit tests for `StreamPeerGZIP`.
This commit is contained in:
Pablo Andres Fuente
2024-10-09 23:23:04 -03:00
committed by Pablo Andres Fuente
parent fdbf6ecc9f
commit e2bef7041e
4 changed files with 201 additions and 4 deletions

View File

@@ -57,6 +57,7 @@
#include "tests/core/io/test_resource_uid.h"
#include "tests/core/io/test_stream_peer.h"
#include "tests/core/io/test_stream_peer_buffer.h"
#include "tests/core/io/test_stream_peer_gzip.h"
#include "tests/core/io/test_tcp_server.h"
#include "tests/core/io/test_udp_server.h"
#include "tests/core/io/test_xml_parser.h"