-
-
Notifications
You must be signed in to change notification settings - Fork 815
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
Panic in proxy handler #634
Comments
I noticed this too, and it's fairly reproducible - about 50% of the times I start the traceback points to this bit of code: defer resp.Body.Close() after adding some so! what to do? two obvious options: first: increase the timeout or retry count. currently it only gives your service 1000ms (1s) to respond to queries or you get the panic. or at least make one or the other configurable. or use exponential-capped backoff to get a longer total wait when it's slow. second: check if if resp == nil {
http.Error(w, "proxy handler: unable to reach app", http.StatusInternalServerError)
return
} just gets you an error page in the browser that can't automatically reload. returning a custom HTML page that just embeds the reload logic to start the process over again might work but is maybe a bit too cute. |
This issue seems to have been fixed by #635 that was released in 1.61.0. |
Given the following configuration using v1.52.3
I sometimes observe the following panic:
The text was updated successfully, but these errors were encountered: