Skip to content

Conversation

@saghul
Copy link
Member

@saghul saghul commented Aug 7, 2015

This reverts commit 05a003a.

Refs: nodejs/node#2310 (comment)

@saghul
Copy link
Member Author

saghul commented Aug 7, 2015

R=@bnoordhuis

@bnoordhuis
Copy link
Member

Rubber-stamp LGTM but can I suggest you mention in the commit log that it was causing regressions in the io.js test suite?

/cc @santigimeno

@saghul
Copy link
Member Author

saghul commented Aug 7, 2015

@bnoordhuis I added a "Refs" there, do you want me to elaborate further?

@bnoordhuis
Copy link
Member

Just that it's nice for people that work offline (or that are just lazy, like me, and don't want to copy/paste the link into a browser) if the commit log tells you why the revert was necessary (test failures.)

@santigimeno
Copy link
Member

Maybe we could just revert the Linux part (EPOLLRDHUP) and leave the BSD (EV_EOF) to address the io.js bug: nodejs/node#1885 that originally caused the PR as that problem didn't appear on Linuxes

@saghul saghul force-pushed the econnreset_revert branch from 2471526 to cc28fbb Compare August 7, 2015 11:18
@saghul
Copy link
Member Author

saghul commented Aug 7, 2015

@bnoordhuis updated.

@saghul
Copy link
Member Author

saghul commented Aug 7, 2015

@santigimeno This patch caused other problems as well, see #474, I'd rather revert it in full now and reevaluate afterwards.

@santigimeno
Copy link
Member

Fair enough

@reqshark
Copy link

reqshark commented Aug 7, 2015

doesnt matter the system, closing a descriptor due to an error sounds inherently tricky

@saghul
Copy link
Member Author

saghul commented Aug 7, 2015

@reqshark What do you mean? The patch didn't close any file descriptor due to an error, it replaced ECONNRESET with EOF under certain conditions.

@reqshark
Copy link

reqshark commented Aug 7, 2015

ECONNRESET means the other side closes the connection I think. If the system doesn't automatically close that descriptor shouldn't the programmer?

@saghul
Copy link
Member Author

saghul commented Aug 7, 2015

The fd is closed when you call uv_close on the stream, never before.

This reverts commit 05a003a.

This commit triggerd "test-tls-hello-parser-failure" failure in io.js.
See the reference below for a more thorough explanation.

Refs: nodejs/node#2310
PR-URL: libuv#475
Reviewed-By: Ben Noordhuis <[email protected]>
@saghul saghul force-pushed the econnreset_revert branch from cc28fbb to 01544d8 Compare August 7, 2015 12:20
@saghul saghul merged commit 01544d8 into libuv:v1.x Aug 7, 2015
@reqshark
Copy link

reqshark commented Aug 7, 2015

@saghul I just mean to say it seems like a tricky scenario..

btw i looked here https://github.com/libuv/libuv/pull/475/files#diff-c9c9805d800eb132a191a9e40da6d813R1220

UV__POLLHUP could be set and ignored. If the connection gets closed why bother doing read?

@saghul
Copy link
Member Author

saghul commented Aug 7, 2015

UV__POLLHUP could be set and ignored. If the connection is gets closed why bother doing read?

How would the user know otherwise? uv__read does more than reading, it will trigger the read callback with the appropriate error, which is what we need.

@reqshark
Copy link

reqshark commented Aug 7, 2015

ah I see. makes sense to me. thank you :)

@brendanashworth
Copy link

Question: I thought the patch would make behavior on linux & OSX equal, but OSX passed just fine. What caused linux to break but not OSX?

vtjnash added a commit to JuliaLang/libuv that referenced this pull request Jan 6, 2020
This reverts commit ca08b48,
for the same reasons that it was reverted the last time it was merged.

Refs: libuv#475
vtjnash added a commit to vtjnash/libuv that referenced this pull request Jan 21, 2020
This reverts commit ca08b48, for the
same reasons that it was reverted the last time it was merged.

Refs: libuv#475
Refs: libuv#2447
PR-URL: libuv#2602
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
vtjnash added a commit to vtjnash/libuv that referenced this pull request Jan 21, 2020
This reverts commit ca08b48, for the
same reasons that it was reverted the last time it was merged.

Refs: libuv#475
Refs: libuv#2447
PR-URL: libuv#2602
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
liujinye-sys pushed a commit to open-vela/apps_system_libuv that referenced this pull request Jul 23, 2025
This reverts commit ca08b48, for the
same reasons that it was reverted the last time it was merged.

Refs: libuv/libuv#475
Refs: libuv/libuv#2447
PR-URL: libuv/libuv#2602
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
liujinye-sys pushed a commit to open-vela/apps_system_libuv that referenced this pull request Dec 16, 2025
This reverts commit ca08b48, for the
same reasons that it was reverted the last time it was merged.

Refs: libuv/libuv#475
Refs: libuv/libuv#2447
PR-URL: libuv/libuv#2602
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants