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

conn.Close() actually doesn't Close ! #47

Open
dev-tathkarah opened this issue Jan 29, 2025 · 0 comments
Open

conn.Close() actually doesn't Close ! #47

dev-tathkarah opened this issue Jan 29, 2025 · 0 comments

Comments

@dev-tathkarah
Copy link

I was facing an issue and i have reported it

gofiber/contrib#698

i feels like i have to report the same here also as the underlying websocket connection is fasthttp/websocket

I am getting issue from :

websocket/conn.go

Lines 346 to 354 in 82c8017

func (c *Conn) Close() error {
if c == nil {
return ErrNilConn
}
if c.conn == nil {
return ErrNilNetConn
}
return c.conn.Close()
}

The Close() is working and returning nil. So it should be closing the underlying connection also but the client(i was using postman) is still connected even after i have called Close() and client can still send the message into the socket connection.

Any assistance from your side is highly appreciated

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

No branches or pull requests

1 participant