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

buffer middleware still attempt the request even though client cancel it #112

Open
onestraw opened this issue Jan 23, 2018 · 0 comments
Open

Comments

@onestraw
Copy link
Contributor

httputil.ReverseProxy will return 502 BadGateway error if client cancel the request.

buffer middleware will retry if we configured retry with IsNetworkError() which capture 502 code.

If this 502 code is caused by client canceled request, it's not necessary to retry.

BTW, Nginx will return it's self-defined code 499 in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant