Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.3k
net: always invoke after-write callback#24291
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
This is part of the streams API contract, and aligns network sockets with other streams in this respect.
nodejs-github-bot commented Nov 10, 2018
Uh oh!
There was an error while loading. Please reload this page.
addaleax commented Nov 12, 2018
I’d like to land this today or tomorrow. @nodejs/tsc @nodejs/streams Just pointing out that this does change a test, and I won’t mind if anybody wants to label this semver-major because of it. CI: https://ci.nodejs.org/job/node-test-pull-request/18554/ |
cjihrig commented Nov 12, 2018
I was thinking this when I approved the PR, but didn't mention it. I think I'd be +1 to semver-major. |
mcollina left a comment
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.
LGTM, let’s consider it a bugfix. I would be careful with backporting.
A CITGM run would be helpful.
mcollina commented Nov 12, 2018
I would prefer to have a test on net that verifies this. |
addaleax commented Nov 12, 2018
The previous CITGM run had infra issues similar to what we’ve seen before, cc @nodejs/build-infra again CITGM rebuild: https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/1614/ |
addaleax commented Nov 12, 2018
@mcollina I’m not sure how to write a simple net-only test for this that doesn’t have the complexity of the test that is being modified here. This doesn’t seem to do the job: constserver=net.createServer(common.mustCall((connection)=>{connection.end('foo');})).listen(0,common.mustCall(()=>{constclient=net.connect(server.address().port);client.write('bar',common.mustCall(()=>server.close()));// client.end();client.destroy();})); |
mcollina commented Nov 12, 2018 via email
No problem, thanks for catching this anyway! I’ve been trying to hunt this for some time. Il giorno lun 12 nov 2018 alle 21:56 Anna Henningsen < [email protected]> ha scritto: …@mcollina <https://github.com/mcollina> I’m not sure how to write a simple net-only test for this that doesn’t have the complexity of the test that is being modified here. This doesn’t seem to do the job: const server = net.createServer(common.mustCall((connection) =>{connection.end('foo')})).listen(0, common.mustCall(() =>{const client = net.connect(server.address().port); client.write('bar', common.mustCall(() => server.close())); // client.end(); client.destroy()})); — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#24291 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AADL42uC3BSeR2jUqanrgJABPf4Bri9hks5uucmNgaJpZM4YYLzN> . |
addaleax commented Nov 13, 2018
Sigh, CITGM didn’t work again. New attempt: https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/1617/ (scheduled) |
Trott commented Nov 14, 2018
CITGM rebuild with CITGM_COMMAND = https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/1626/ |
addaleax commented Nov 15, 2018
Landed in c347e77 I’ve added the dont-land-on-lts labels, if that’s okay with everyone. |
This is part of the streams API contract, and aligns network sockets with other streams in this respect. PR-URL: #24291 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Weijia Wang <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
This is part of the streams API contract, and aligns network sockets with other streams in this respect. PR-URL: #24291 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Weijia Wang <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
This is part of the streams API contract, and aligns
network sockets with other streams in this respect.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes