Skip to content

Revert "Revert "unix,stream: clear read/write states on close/eof"" - #3006

Merged
vtjnash merged 1 commit into
libuv:v1.xfrom
vtjnash:jn/1798-again
May 21, 2021
Merged

vtjnash merged 1 commit into
libuv:v1.xfrom
vtjnash:jn/1798-again

Conversation

@vtjnash

@vtjnash vtjnash commented Sep 25, 2020

Copy link
Copy Markdown
Member

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

@stale

stale Bot commented Oct 16, 2020

Copy link
Copy Markdown

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.

@stale stale Bot added the stale label Oct 16, 2020
@vtjnash

vtjnash commented May 10, 2021

Copy link
Copy Markdown
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

vtjnash commented May 20, 2021

Copy link
Copy Markdown
Member Author

bump

@vtjnash

vtjnash commented May 20, 2021

Copy link
Copy Markdown
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.

@vtjnash
vtjnash merged commit ce15b84 into libuv:v1.x May 21, 2021
@vtjnash
vtjnash deleted the jn/1798-again branch May 21, 2021 20:20
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
vtjnash added a commit that referenced this pull request Nov 25, 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: #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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants