ReverseProxy read error during body copy: read tcp 10.4.231.230:52954->10.4.231.43:8080: use of closed network connection

Hello all,
We are using traefik as reverse proxy for our kubernetes cluster. We are currently on v2.9.5. Everything was perfect until we have enabled http connection pool for out applications. There is a service A which has a http connection pool to call a service B. service B is behind the traefik proxy. When my pod of serviceA and pod of serviceB are on same node, I'm seeing this error:

reverseproxy.go:505: httputil: ReverseProxy read error during body copy: read tcp 10.4.231.230:52954->10.4.231.43:8080: use of closed network connection

I understand that this is an issue with http connection pool, but I'm unable to figure out which application is closing the connection due to which I'm getting this error. Thanks for the help in advance. :slight_smile:

A HTTP connection pool is probably opening a few HTTP connections and keeping them open endlessly, sending multiple requests through the same connection.

I doubt that this is a concept that works well in a cloud setting where containers are created and deleted all the time - that is what k8s is build for.

Search kubernetes and "long running connections" or "long lived connections".

Firstly, thank you for your response.
As you said, we are starting a http connection pool and keeping it open for a certain time. This implementation is for multiple services. But it's only for a specific service where we are seeing this, and only when the pods of traefik and my application are running on the same node.

What exactly does this error mean?