You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ext_proc): fix downstream hang with chunked empty body on mode override to FULL_DUPLEX_STREAMED
In sendBufferedDataInStreamedMode, hasBufferedData() checks
length > 0, skipping 0-length buffers. When mode_override changes
response_body_mode from BUFFERED to FULL_DUPLEX_STREAMED and the
upstream sends a chunked response with an empty body, the 0-byte
buffer is never sent to ext_proc, causing the filter chain to hang.
Change hasBufferedData() to bufferedData() (non-null check) so the
empty body chunk with end_stream=true is properly dispatched to the
ext_proc server, matching the Idle path in handleCompleteBodyAvailable.
Signed-off-by: Renuka Fernando <renukapiyumal@gmail.com>
0 commit comments