-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
src: introduce internal C++ SetImmediate() and remove async_hooks destroy timer #17117
Conversation
6df5d66
to
88403c4
Compare
i'm going to be revisiting the lifecycle of http2 sessions and streams soon after #17105 lands, good timing on this :-) |
PR-URL: #17117 Reviewed-By: James M Snell <[email protected]>
PR-URL: #17117 Reviewed-By: James M Snell <[email protected]>
Should this be backported to |
Yes, this will need to be back ported as it is needed by http2 (or at least will be soon) |
Managed to get it to land |
PR-URL: #17117 Reviewed-By: James M Snell <[email protected]>
PR-URL: #17117 Reviewed-By: James M Snell <[email protected]>
PR-URL: nodejs#17117 Backport-PR-URL: nodejs#18179 Reviewed-By: James M Snell <[email protected]>
PR-URL: nodejs#17117 Backport-PR-URL: nodejs#18179 Reviewed-By: James M Snell <[email protected]>
Backport-PR-URL: #18179 PR-URL: #17117 Reviewed-By: James M Snell <[email protected]>
Backport-PR-URL: #18179 PR-URL: #17117 Reviewed-By: James M Snell <[email protected]>
ping re: 8.x backport Set don't land for v6.x |
@MylesBorins The v8.x backport for this was in #18086 (or @AndreasMadsen’s #18179) What’s the reason for |
@addaleax I'm for backporting on a need-to basis. This was backported to 8 because it was needed for http2. Given that we are not going to backport that, what's the need for v6? Of course, if there is something we want backported that depends on this, we should backport. I don't think there is a need to backport sooner. |
I assumed it wouldn't land on 6 as there are not currently plans to backport async hooks. Feel to change labels as appropriate though |
@MylesBorins The first commit here isn’t really about async_hooks, it introduces a very general internal utility – I’m okay with doing what @mcollina suggests and just backporting when it starts to get used by something else |
Introduce
env->SetImmediate(fn)
and remove the handle we use forasync_hooks
destroys.After #17105, a similar thing could be done for HTTP/2.
(The one test change is due to the slightly different timing for
async_hooks
, since timer and check handle callbacks run at different times.)Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
src