dream icon indicating copy to clipboard operation
dream copied to clipboard

Investigate client connection sockets in CLOSE_WAIT state

Open aantron opened this issue 4 years ago • 1 comments

@thangngoc89 on Discord:

Even though there aren't any browser tabs opening, there are tons of close-wait in process list. Is this a bug ? Or is this an expected behavior of server applications?

unknown

These persisted for hours until @thangngoc89 killed the server.

aantron avatar Jul 29 '21 06:07 aantron

Hi @aantron, we've encountered an issue that looks exactly like this. We're using Dream to implement a GraphQL API: in our case, the connections in CLOSE_WAIT are not coming from the browser but from the load balancer. The service runs smoothly for 36/48 hours, and then suddenly, 504 errors (read timeouts) start appearing on the load balancer side, as it obviously times out.

I won’t attach a screenshot of the CLOSE_WAIT connections since it's identical to @thangngoc89's, but I’m attaching the Grafana one instead: as you can see, at some point, something happens that triggers this situation.

Do you have any suggestions to help us with bug hunting?

Image

pdonadeo avatar Feb 20 '25 10:02 pdonadeo