oxy icon indicating copy to clipboard operation
oxy copied to clipboard

buffer middleware still attempt the request even though client cancel it

Open onestraw opened this issue 7 years ago • 0 comments

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.

onestraw avatar Jan 23 '18 02:01 onestraw