envoyproxy/envoy

Add error handling support to decompressors

Open

#32,621 opened on Feb 28, 2024

View on GitHub
 (0 comments) (0 reactions) (0 assignees)C++ (5,373 forks)batch import
area/compressionhelp wanted

Repository metrics

Stars
 (27,997 stars)
PR merge metrics
 (Avg merge 8d) (378 merged PRs in 30d)

Description

Title: Add Error Handling Support to Decompressors

Description: Our filter code utilizes Decompression extensions (Brotli and Zlib) to decode compressed data. Currently, the decompression interface updates its internal statistics when decompression fails, but it does not provide any indication of error to the caller.

This feature request proposes that the decompress method either returns an error directly or that an API is added to retrieve the error from the last decompression call.

Reference: GitHub - envoyproxy/envoy

Contributor guide