GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||
GeezerVison is showing github.com — [v4.x backport] tls: fix writeQueueSize prop, long write timeouts by apapirovski · Pull Request #16422 · nodejs/node Conversation
Contributor
This is a backport of #15791 as requested. /cc @MylesBorins Checklist
Affected core subsystem(s)net, tls, test
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
refack
approved these changes
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
MylesBorins
force-pushed
the
v4.x-staging
branch
from
ab9be2a to
5d9164c
Compare
Make writeQueueSize represent the actual size of the write queue within the TLS socket. Add tls test to confirm that bufferSize works as expected. PR-URL: nodejs#15791 Fixes: nodejs#15005 Refs: nodejs#15006 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Fedor Indutny <[email protected]> Add updateWriteQueueSize which updates and returns queue size (net & tls). Make _onTimeout check whether an active write is ongoing and if so, call _unrefTimer rather than emitting a timeout event. Add http & https test that checks whether long-lasting (but active) writes timeout or can finish writing as expected. PR-URL: nodejs#15791 Fixes: nodejs#15082 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Fedor Indutny <[email protected]>
apapirovski
force-pushed
the
backport-15791-to-v4.x
branch
from
6c659aa to
96f7df8
Compare
|
There was an error while loading. Please reload this page.
|
CI is all green (failure unrelated) and I've rebased. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This is blocked because of #16484 — working on a PR which will then need to be applied here. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
This commit handles the case where _onTimeout is called with a null handle. Refs: nodejs#15791 Fixes: nodejs#16484 PR-URL: nodejs#16489 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
|
Last commit is technically from a different PR but this shouldn't land without it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
TBQH, I'm nervous about this landing in v4.x due to the regression that we found. Yes it was only a single regression, but with 4.x going EOL in the next 6 months I'm not sure that the benefit outweighs the risk /cc @nodejs/lts thoughts? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'm 👎 on landing this on v4. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Seems sensible. Closing this. :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.