Skip to content

Commit d976421

Browse files
authored
clear read deadline in http/2 ws case (#521)
1 parent fecb61d commit d976421

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/websocket/server.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,10 @@ func (u *Upgrader) upgradeH2(w http.ResponseWriter, r *http.Request, responseHea
370370
if err := rc.Flush(); err != nil {
371371
return nil, "", err
372372
}
373+
err := rc.SetReadDeadline(time.Time{})
374+
if err != nil {
375+
return nil, "", err
376+
}
373377

374378
stream := &http2Stream{
375379
ReadCloser: r.Body,

0 commit comments

Comments
 (0)