Skip to content

Commit

Permalink
Added more commit messages
Browse files Browse the repository at this point in the history
Signed-off-by: nyagamunene <[email protected]>
  • Loading branch information
nyagamunene committed Apr 23, 2024
1 parent f7c1d4c commit d3f8b3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/mqtt/websocket/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ func (p Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) {
func (p Proxy) pass(in *websocket.Conn) {
defer in.Close()
// Using a new context so as to avoiding infinitely long traces.
// And also avoiding proxy cancellation due to parent context cancellation.
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
dialer := &websocket.Dialer{
Expand Down

0 comments on commit d3f8b3c

Please sign in to comment.