Skip to content
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

Accurate implementation of H2 Request.beginNanoTime() #10909

Merged
merged 5 commits into from
Nov 23, 2023

Conversation

lorban
Copy link
Contributor

@lorban lorban commented Nov 21, 2023

The implementation is similar to H1 and FCGI: take a nano timestamp at the time the very first byte is parsed, then use that timestamp to create the MetaData.Request.

This is one of the implementations necessary to close #9900.

@lorban lorban added this to the 12.0.x milestone Nov 21, 2023
@lorban lorban requested a review from sbordet November 21, 2023 11:28
@lorban lorban self-assigned this Nov 21, 2023
@lorban lorban changed the base branch from jetty-10.0.x to jetty-12.0.x November 21, 2023 11:28
@lorban lorban changed the title Accurate implementation of H2C Request.beginNanoTime() Accurate implementation of H2 Request.beginNanoTime() Nov 22, 2023
@lorban lorban merged commit 382638b into jetty-12.0.x Nov 23, 2023
@lorban lorban deleted the jetty-12.0.x-9900-implement-h2c-beginNanoTime branch November 23, 2023 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Improve Request.getBeginNanoTime() accuracy
2 participants