http: fix issues in CONNECT-UDP forwarding mode. (#36174)
Commit Message: When Envoy operates as a CONNECT-UDP forwarding proxy, it was resetting the upstream stream because it received HTTP Datagrams before receiving the SETTINGS frame. A new enum has been added in QUICHE to distinguish this case, so I added handling logic for this and made Envoy drop the datagrams instead of resetting the stream. Also, Envoy was dropping Datagrams because the default maximum packet length for QUIC connections in QUICHE is not large enough for tunneling use cases such as CONNECT-UDP. I added a new QUIC protocol option called `max_packet_length` to allow users to adjust the maximum packet length for upstream QUIC connections to fix this issue. Additional Description: Risk Level: Low, this change is only relevant if CONNECT-UDP is enabled with the forwarding mode. Testing: Added more unit tests. Docs Changes: Added the `max_packet_length` QUIC protocol option and its explanation. Release Notes: Added notes about fixing the CONNECT-UDP forwarding mode and adding the new QUIC protocol option. Platform Specific Features: N/A [Optional Fixes #Issue]: #34836 --------- Signed-off-by: Jeongseok Son <jeongseok.son@gmail.com> Mirrored from https://github.com/envoyproxy/envoy @ 0e7fdf5f23e3147a998c24a0cf8e3192797e80c5main
parent
6ad9b1b79a
commit
f30a332536
1 changed files with 5 additions and 1 deletions
Loading…
Reference in new issue