Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic due to send on closed channel #220

Closed
agaffney opened this issue Apr 3, 2023 · 0 comments · Fixed by #221
Closed

panic due to send on closed channel #220

agaffney opened this issue Apr 3, 2023 · 0 comments · Fixed by #221

Comments

@agaffney
Copy link
Contributor

agaffney commented Apr 3, 2023

Seen during chain-sync when the connection was closed unexpectedly (perhaps due to a timeout). An immediate reconnect (perhaps reusing the same pointer var for the ouroboros.Connection object) may be involved.

panic: send on closed channel

goroutine 112 [running]:
github.com/blinklabs-io/gouroboros/protocol.(*Protocol).SendMessage(...)
	/go/pkg/mod/github.com/blinklabs-io/gouroboros@v0.33.1/protocol/protocol.go:135
github.com/blinklabs-io/gouroboros/protocol/chainsync.(*Client).syncLoop(0xc0000aa400)
	/go/pkg/mod/github.com/blinklabs-io/gouroboros@v0.33.1/protocol/chainsync/client.go:155 +0x8f
created by github.com/blinklabs-io/gouroboros/protocol/chainsync.(*Client).Sync
	/go/pkg/mod/github.com/blinklabs-io/gouroboros@v0.33.1/protocol/chainsync/client.go:142 +0x21c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant