You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I noticed that creating a new client with default options might lead to an http2 connection leak. I found a handy solution using the IdleConnTimeout option from this helpful Pull Request: golang.org/x/net#170. I was thinking it would be really cool if the library could automatically close these connections by default, or at least give developers a heads-up to use CloseIdleConnections in their code. This would save everyone a bit of trouble and debugging time! What do you think?
Hi! I noticed that creating a new client with default options might lead to an http2 connection leak. I found a handy solution using the
IdleConnTimeout
option from this helpful Pull Request: golang.org/x/net#170. I was thinking it would be really cool if the library could automatically close these connections by default, or at least give developers a heads-up to use CloseIdleConnections
in their code. This would save everyone a bit of trouble and debugging time! What do you think?Got this all sorted out on 11/07 with
go version
1.23.2
go env
Linux - amd64
I used the method
apns2.NewTokenClient()
to create new client and usePushWithContext()
send a push notification.The amount of goroutines should reduce over time and return to normal.
Goroutines keep increasing under high load due to http2 keeping open new connections without automatically closing them.
The text was updated successfully, but these errors were encountered: