Skip to content

[question] cancelled context is ignored? #825

Description

@ivanjaros

I have dialer:

d := websocket.Dialer{
		ReadBufferSize:    1024 * 4,
		WriteBufferSize:   1024 * 4,
		EnableCompression: false,
}

and I am using d.DialContext() to dial the server. So far it looks like cancelling the context will not close the connection, so my client "hangs" when the app is requested to be stopped by context cancellation.

Is this a bug or expected behavior or I might have a bug elsewhere?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions