-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/http3: return error on mid-frame EOF
When a stream ends in the middle of a frame, return a non-EOF error from Read or ReadByte. When a stream ends at the end of a frame, don't return io.EOF from the Read call that reads the last byte of the frame. (This complicates stream.Read slightly, but means that code that reads frames consistently never sees an io.EOF, but gets an error if it tries to read past the end of a frame.) For golang/go#70914 Change-Id: If1b852716fe5e3aa3503f6970e2e1fba2ebb5f48 Reviewed-on: https://go-review.googlesource.com/c/net/+/644116 Auto-Submit: Damien Neil <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Jonathan Amsterdam <[email protected]>
- Loading branch information
Showing
2 changed files
with
65 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
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