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 H3 Request.beginNanoTime() #10911

Merged
merged 2 commits into from
Nov 23, 2023

Conversation

lorban
Copy link
Contributor

@lorban lorban commented Nov 22, 2023

The implementation is similar to H1, FCGI and H2: 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 22, 2023
@lorban lorban requested a review from sbordet November 22, 2023 12:30
@lorban lorban self-assigned this Nov 22, 2023
@lorban lorban changed the base branch from jetty-12.0.x to jetty-12.0.x-9900-implement-h2c-beginNanoTime November 22, 2023 12:31
@joakime joakime linked an issue Nov 22, 2023 that may be closed by this pull request
@lorban lorban changed the base branch from jetty-12.0.x-9900-implement-h2c-beginNanoTime to jetty-12.0.x November 23, 2023 09:45
sbordet
sbordet previously approved these changes Nov 23, 2023
@lorban lorban force-pushed the jetty-12.0.x-9900-implement-h3-beginNanoTime branch from e1297fd to 347be4d Compare November 23, 2023 09:46
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
@lorban lorban merged commit b9bd3f2 into jetty-12.0.x Nov 23, 2023
7 checks passed
@lorban lorban deleted the jetty-12.0.x-9900-implement-h3-beginNanoTime branch November 23, 2023 13:34
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