Skip to content

Commit

Permalink
default the timeout to 0 instead 30 on proxy requests
Browse files Browse the repository at this point in the history
  • Loading branch information
sredxny committed Feb 29, 2024
1 parent db75d6e commit cccd955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gateway/reverse_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ func (p *ReverseProxy) ServeHTTPForCache(rw http.ResponseWriter, req *http.Reque
return resp
}

const defaultProxyTimeout float64 = 30
const defaultProxyTimeout float64 = 0

func proxyTimeout(spec *APISpec) float64 {
if spec.GlobalConfig.ProxyDefaultTimeout > 0 {
Expand Down

0 comments on commit cccd955

Please sign in to comment.