caddy: Panic after "update quic-go to v0.48.0" commit

Caddy regularly crashes for me after upgrading to commit a211c65, update quic-go to v0.48.0. The log shows:

panic: close of closed channel
github.com/quic-go/quic-go@v0.48.0/http3/server.go:289
github.com/quic-go/quic-go/http3.(*Server).serveListener.func1()
github.com/quic-go/quic-go@v0.48.0/http3/server.go:340 +0x128
created by github.com/quic-go/quic-go/http3.(*Server).serveListener in goroutine 115
github.com/quic-go/quic-go@v0.48.0/http3/server.go:333 +0x39

Reverting to the previous commit stops the crashes.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 19 (11 by maintainers)

Most upvoted comments

@francislavoie , @marten-seemann I can confirm that running Caddy with this commit works. It’s not crashing at all during page refreshes.

Go’s module proxy caches branch references, so if you used master it may have stayed on the previous commit for some time until the cache expires.

I see, so the only reason you restarted caddy is due to the crash with the reported error message, right?

The 137 is graceful shutdown timeout, and caddy is forcibly killed.

Yes. Sorry I should have mentioned that. It crashes with that one too so that wasn’t a fix in this case I’m afraid.