Skip to content

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

Description

@dev-tathkarah

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions