Hello
We’ve carried out gateway appication which mainly reroutes the request to focus on server (spring boot app). For gateway we’re utilizing golang 1.18.
Intially we have now used the reverseproxy from golang to ahead the request, however in prodcution we had been seeing sudden EOF, so we thought the problem associated is likely to be because of the reverseproxy.go and altered to the httpclient with under configuration.
httpClient = &http.Shopper{ Timeout: 60, //seconds Transport: http.DefaultTransport.(*http.Transport).Clone(), }
however nonetheless we might see the sudden EOF error in prodcution. that is occurring intermittently in prod env however not capable of reproduce in dev env.
Env specification under deployed env – cloud foundary consumer app – cell api gateway golang model – 1.18 targer server app – spring boot (2.5.14) , java 11
- We’ve moved code from reverseproxy to the httpclient.
- As an alternative of default transport , we have now used the customized transport , elevated the trip
- We hvae closed the request utilizing Request.shut technique.
We’ve tried with replicated the identical request and headers from cell app, nonetheless we weren’t capable of reproduce the problem in dev env.
Might you please counsel me the best way to breed the same error in dev env ? Any fixes for sudden EOF error in manufacturing ?