In-reply-to » I'm not a channel expert, @prologic, but idleConnsClosed is useless here, right? https://git.mills.io/yarnsocial/yarn/src/branch/main/internal/server.go#L192

Ah, it’s supposed to be this pattern in the example code, but – to my understanding – applied incorrectly since all interaction with this channel happens in the same goroutine: https://pkg.go.dev/net/http#Server.Shutdown

⤋ Read More