Skip to content

socket-io: Panic sent on closed channel #78

@heiningair

Description

@heiningair

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/socketio@v0.1.4/transport/transport.go:154 +0x826
created by github.com/njones/socketio/transport.(*Transport).Receive
	.../go/pkg/mod/github.com/njones/socketio@v0.1.4/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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions