Skip to content

Commit

Permalink
Merge pull request #165 from philippseith/bugfix/#164_negotiationCtx_…
Browse files Browse the repository at this point in the history
…cancels_connection

fix: negotiation context cancels connection
  • Loading branch information
philippseith authored Apr 8, 2023
2 parents e507d7a + 55ff6d4 commit 41147bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion httpconnection.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ func NewHTTPConnection(ctx context.Context, address string, options ...func(*htt
return nil, err
}

conn = newWebSocketConnection(ctx, nr.ConnectionID, ws)
// TODO think about if the API should give the possibility to cancel this connection
conn = newWebSocketConnection(context.Background(), nr.ConnectionID, ws)

case nr.getTransferFormats("ServerSentEvents") != nil:
req, err := http.NewRequest("GET", reqURL.String(), nil)
Expand Down

0 comments on commit 41147bb

Please sign in to comment.