marekmartins
marekmartins
maybe You can give me some pointers how I could do it easiest and in a form most useful for You? then I try to look more into it in...
Tnx. I'll try to look into this. I know this by Prometheus/Grafana metrics we have / are tracking. Each night connections count drops from 50k to roughly 2k and together...
I let it run in test litte-bit and I already see patterns that goroutines tend to go up. I profiled it in a moment where there were `8` connections opened....
I'm using `net/http/pprof` package for that I have HTTP handlers what give back different profiles. This concrete one is `/debug/pprof/goroutine` profile from that. https://pkg.go.dev/net/http/pprof I took new profile and now...
You're right. If connection was closed from client side and main read loop ended because of that then on server side we did not explicitly close as without it also...
Letting know that seems that adding explicit `Close` solved problem for us! Thank You :) Feel free to close this issue.
I have exactly the same problem using it under WSL2 in Win11. Problem started with version 1.27.5. Also 1.27.6 is affected aswell. 1.27.4 works fine. For reproducing dummy HTTP server:...
Sure, it's with version `1.27.6` ``` event: "/app/main.go": WRITE event: "/app/main.go": WRITE main.go has changed main.go has changed flushing events main.go has changed building... trying to kill pid 119, cmd...
Ubuntu, are You using WSL2? Version 2 is important :) Also I'm running it via docker container using image from here: https://hub.docker.com/r/cosmtrek/air In powershell: 
Slightly output changed, but still port is not released fully by the moment it tries to run new process. ``` event: "/app/main.go": WRITE event: "/app/main.go": WRITE main.go has changed main.go...