-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[router] Fix byte size logging in HTTP gRPC upstream logs (#8836)
Refreshes byte size on downstream headers in `router.cc`. Enabling gRPC upstream logs will write the byte size of these headers to the logs. Without the refresh, calling `byteSize()` on this header map will result in a bad optional access. Testing: Added test that configures upstream logs with `envoy.http_grpc_access_log`. Would otherwise result in a crash due to instance of `absl::bad_optional_access` Fixes #8828 Signed-off-by: Asra Ali <asraa@google.com> Signed-off-by: Matt Klein <mklein@lyft.com>
- Loading branch information
1 parent
6a5e23c
commit 7d9d95f
Showing
3 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters