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
When a connection is closed almost immediately after a successful handshake, the muxer shutdown can trigger while protocols are still being registered, causing the m.waitGroup.Wait() to start before all of the m.waitGroup.Add() calls have completed, which causes a panic.
panic: sync: WaitGroup is reused before previous Wait has returned
goroutine 3362 [running]:
sync.(*WaitGroup).Wait(0xc000b5ef78?
)
/opt/hostedtoolcache/go/1.21.13/x64/src/sync/waitgroup.go:118 +0x74
github.com/blinklabs-io/gouroboros/muxer.New.func1()
/home/runner/go/pkg/mod/github.com/blinklabs-io/gouroboros@v0.93.2/muxer/muxer.go:92 +0x48
created by github.com/blinklabs-io/gouroboros/muxer.New in goroutine 52
/home/runner/go/pkg/mod/github.com/blinklabs-io/gouroboros@v0.93.2/muxer/muxer.go:85 +0x198
The text was updated successfully, but these errors were encountered:
When a connection is closed almost immediately after a successful handshake, the muxer shutdown can trigger while protocols are still being registered, causing the
m.waitGroup.Wait()
to start before all of them.waitGroup.Add()
calls have completed, which causes a panic.The text was updated successfully, but these errors were encountered: