-
Notifications
You must be signed in to change notification settings - Fork 126
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
refactor: pass now
to qlog
#2212
Conversation
Instead of using `QLogStream::add_event_data_now`, which internally calls `std::time::Instant::now()`, pass `now to `QLogStream::add_event_data_with_instant`.
Failed Interop TestsQUIC Interop Runner, client vs. server neqo-latest as client
neqo-latest as server
All resultsSucceeded Interop TestsQUIC Interop Runner, client vs. server neqo-latest as client
neqo-latest as server
Unsupported Interop TestsQUIC Interop Runner, client vs. server neqo-latest as client
neqo-latest as server
|
Probably a stupid idea, but can we make |
We could use a thread-local atomic. That said, I think the current approach on I am reluctant to give up the above properties for #2211 alone. Instead of this pull request, or a thread local variable, I suggest we go with #2216. |
Closing here in favor of #2216. |
Instead of using
QLogStream::add_event_data_now
, which internally callsstd::time::Instant::now()
, passnow
toQLogStream::add_event_data_with_instant
.This would close #2211. That said, given that this change is very noisy, passing
now
across all layers and addingnow
to many of our public APIs (seeneqo-bin/src
for examples), I don't think it is worth it.Let me know if you think otherwise.
Alternative: We could only do this change in
neqo-transport
, having allneqo-http3
functions callingneqo-transport
functions with a freshstd::time::Instant::now()
. That would give us proper qlogs when usingtest_fixtures::Simulator
as that is only concerned withneqo-transport
and that would reduce the noise. Downside, additional complexity, as the problem itself is only half fixed, i.e. inneqo-transport
but notneqo-http3
.