Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to capture/ignore client-cancel-request error in buffer middleware #127

Open
onestraw opened this issue Mar 23, 2018 · 0 comments
Open
Labels

Comments

@onestraw
Copy link
Contributor

When I use buffer and reverseproxy to handle failover, I found that buffer can not handle the case that reverseproxy.go return 502 if client canceled the request (maybe the connection has gone).

Currently, as I have remove the strict check for expectBody, buffer return 500 at here

If I ignore this specific case, buffer received 502 from reverseproxy, it will attempt to resend the request.

My question is that is there any method to identify client-cancel-request error and gracefully ignored it (not logged 502/500 error)?

@ldez ldez added the question label Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants