Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix handling of unknown frames in the stream hijacker
- Loading branch information
1 parent
3088865
commit 5cb2e82
Showing
4 changed files
with
4 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,11 +33,10 @@ func parseNextFrame(r io.Reader, unknownFrameHandler unknownFrameHandlerFunc) (f | |
if err != nil { | ||
return nil, err | ||
} | ||
// If the unknownFrameHandler didn't process the frame, it is our responsibility to skip it. | ||
if hijacked { | ||
return nil, errHijacked | ||
} | ||
continue | ||
// If the unknownFrameHandler didn't process the frame, it is our responsibility to skip it. | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
marten-seemann
Author
Member
|
||
} | ||
l, err := quicvarint.Read(qr) | ||
if err != nil { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I don't follow how removing the continue means we're skipping the frame? @marten-seemann