I'm using gin to build a simple api server. right now, after the server started a few minutes later, all of incoming requests were stuck. After checking connections state , I got a message like below : Gin http connections stuck in close_wait state

I already have tried to set c.Request.Close=true or c.Header("Connection","close") or both of them, but it was not working. I was wondering if anyone can help me fix this issue.

Comment From: nep-0

@shimron How did you solve this? Is it convenient to you share?

Comment From: huanshengHe

@nep-0 Did you find out how to solve this? I had the same problem

Comment From: nep-0

@huanshengHe Sure. There was a bug in my code, a deadlock. I fixed my bug and then there was no problem.