Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
thrift proxy: add comments explaining local replies
While debugging envoyproxy#14723, it took me a long time to figure out how filter chain processing is supposed to _safely_ stop after a local reply was triggered. This gets slightly tricky because there's two possibilities after sending a local response: 1) you don't close the connection, so you need to keep decoding (but shouldn't run the filters) 2) you do close the connection, which means a onEvent(LocalClose) happens synchronously and rpcs are marked for deletion or data processing fully stopped because of StopIteration. Hopefully the comments help me or someone else the next time we need to debug something around handling local replies. Signed-off-by: Raul Gutierrez Segales <rgs@pinterest.com>
- Loading branch information