Skip to content

socket-io: Panic sent on closed channel #78

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

Open
heiningair opened this issue Aug 3, 2023 · 0 comments
Open

socket-io: Panic sent on closed channel #78

heiningair opened this issue Aug 3, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@heiningair
Copy link

heiningair commented Aug 3, 2023

Hi,

I noticed that sometimes when my application (which implements the socketio server) is running for some time, I experience a panic which states the following:

panic: send on closed channel

goroutine 6198 [running]:
github.com/njones/socketio/transport.(*Transport).Receive.func1()
	.../go/pkg/mod/github.com/njones/[email protected]/transport/transport.go:154 +0x826
created by github.com/njones/socketio/transport.(*Transport).Receive
	.../go/pkg/mod/github.com/njones/[email protected]/transport/transport.go:111 +0x76


I use the ServerV4 with PollingTransport.

Is that a known issue?

Even when the application is idle, it happens sometimes and crashes the whole app.
How can I prevent this from happening?

@njones njones changed the title panic: send on closed channel socket-io: Panic sent on closed channel Jan 23, 2024
@njones njones added the bug Something isn't working label Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants