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?
I have dialer:
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?