-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drain the input stream if the remaining data is small #25223
base: master
Are you sure you want to change the base?
Conversation
@@ -243,6 +243,7 @@ private void closeStream() | |||
|
|||
try (var _ = in) { | |||
in.abort(); | |||
in.release(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add the reference document (in the commit message) where it was mentioned this is recommended?
@@ -242,8 +244,16 @@ private void closeStream() | |||
} | |||
|
|||
try (var _ = in) { | |||
in.abort(); | |||
in.release(); | |||
// According to the documentation: Abort will close the underlying connection, dropping all remaining data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
documentation link?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.release() method
8328c94
to
6ffc489
Compare
6ffc489
to
b07b436
Compare
Description
Additional context and related issues
Release notes
( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text: