-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
http2: add Http2Session.lastReceivedTime #23010
Conversation
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
Hm … given that this isn’t specific to HTTP/2 as a protocol, would it make sense to implement this for |
maybe? lol ... perhaps this for now and if we receive any requests to generalize it we can fairly easily. |
The addition itself seems like a good thing but I would prefer to have it as a function call named I also like the suggestion from @addaleax to make it a general thing for |
Making it a generalized thing for |
Adds a time stamp indicating the last time data was received from the connected peer. Fixes: nodejs#21730
126efc3
to
bc5fd8e
Compare
@mcollina and @ryzokuken ... changed to a function to address @BridgeAR's feedback. PTAL |
Benchmark CI shows a few small but significant drops, here’s one with more iterations: https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/240/ |
Yeah, I was afraid of that on the perf drop. Before this lands I'll investigate how I can minimize that |
@jasnell should |
Yes. Let's do that
On Sep 24, 2018 07:01, "Denys Otrishko" <[email protected]> wrote:
@jasnell <https://github.com/jasnell> should author ready be removed then
to avoid confusion and someone landing this before you finish?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#23010 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAa2ea43YQLedyrjwcOCnZxD73rheO06ks5ueOXNgaJpZM4W09v8>
.
|
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 after the update suggested by @BridgeAR
Going to close this and revisit it later. |
Adds a time stamp indicating the last time data was received from
the connected peer.
Fixes: #21730
/cc @murgatroid99 who requested the feature
/cc @nodejs/http2
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes