Repository navigation
Revert "Revert "unix,stream: clear read/write states on close/eof"" - #3006
Merged
Merged
Conversation
This reverts commit 46f36e3.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Member
Author
|
Since I submitted the fix to nodejs for their missing error check 6 months ago (nodejs/node#36111), I'd like to merge this now. Anyone willing to review? |
vtjnash
requested review from
bnoordhuis and
cjihrig
and removed request for
cjihrig
May 12, 2021 22:39
Member
Author
|
bump |
Member
Author
|
This was already approved (and then got reverted due to an unrelated nodejs bug), so I'm hoping to re-land this now, but would prefer at least a RSLGTM or SGTM first. |
santigimeno
approved these changes
May 20, 2021
vtjnash
added a commit
to vtjnash/libuv
that referenced
this pull request
Nov 10, 2021
On some streams (notably TTYs), it is permitted to continue reading after getting EOF. So still stop reading on EOF, but allow the user to reset the stream and try to read again (which may just get EOF). This relaxes the constraint added in ce15b84. Refs: libuv#3006
vtjnash
added a commit
to vtjnash/libuv
that referenced
this pull request
Nov 10, 2021
On some streams (notably TTYs), it is permitted to continue reading after getting EOF. So still stop reading on EOF, but allow the user to reset the stream and try to read again (which may just get EOF). This relaxes the constraint added in ce15b84. Refs: libuv#3006
vtjnash
added a commit
to vtjnash/libuv
that referenced
this pull request
Nov 10, 2021
On some streams (notably TTYs), it is permitted to continue reading after getting EOF. So still stop reading on EOF, but allow the user to reset the stream and try to read again (which may just get EOF). This relaxes the constraint added in ce15b84. Refs: libuv#3006
JeffroMF
pushed a commit
to JeffroMF/libuv
that referenced
this pull request
May 16, 2022
This reverts commit 46f36e3. PR-URL: libuv#3006 Refs: libuv#2967 Refs: libuv#2409 Refs: libuv#2943 Refs: libuv#2968 Refs: nodejs/node#36111 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
JeffroMF
pushed a commit
to JeffroMF/libuv
that referenced
this pull request
May 16, 2022
On some streams (notably TTYs), it is permitted to continue reading after getting EOF. So still stop reading on EOF, but allow the user to reset the stream and try to read again (which may just get EOF). This relaxes the constraint added in ce15b84. Refs: libuv#3006
liujinye-sys
pushed a commit
to open-vela/apps_system_libuv
that referenced
this pull request
Jul 23, 2025
This reverts commit 46f36e3. PR-URL: libuv/libuv#3006 Refs: libuv/libuv#2967 Refs: libuv/libuv#2409 Refs: libuv/libuv#2943 Refs: libuv/libuv#2968 Refs: nodejs/node#36111 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
liujinye-sys
pushed a commit
to open-vela/apps_system_libuv
that referenced
this pull request
Jul 23, 2025
On some streams (notably TTYs), it is permitted to continue reading after getting EOF. So still stop reading on EOF, but allow the user to reset the stream and try to read again (which may just get EOF). This relaxes the constraint added in ce15b84. Refs: libuv/libuv#3006
liujinye-sys
pushed a commit
to open-vela/apps_system_libuv
that referenced
this pull request
Dec 16, 2025
This reverts commit 46f36e3. PR-URL: libuv/libuv#3006 Refs: libuv/libuv#2967 Refs: libuv/libuv#2409 Refs: libuv/libuv#2943 Refs: libuv/libuv#2968 Refs: nodejs/node#36111 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
liujinye-sys
pushed a commit
to open-vela/apps_system_libuv
that referenced
this pull request
Dec 16, 2025
On some streams (notably TTYs), it is permitted to continue reading after getting EOF. So still stop reading on EOF, but allow the user to reset the stream and try to read again (which may just get EOF). This relaxes the constraint added in ce15b84. Refs: libuv/libuv#3006
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This reverts commit 46f36e3. Make this PR as a placeholder to remember that nodejs needs to be debugged with it.
Identical to: #2967
Refs: #2409
Refs: #2943
Refs: #2968