-
Notifications
You must be signed in to change notification settings - Fork 274
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
Disable some session creation time tests on Windows. #1219
Conversation
Seems to be an off-by-one issue with the creation time versus system time making things appear they were created a second in the future. But only on Windows and only ever 1 second, so disabling the test for now as no real app risk.
@davidben what API does BoringSSL use to populate |
We use I'm guessing you don't have the offending times themselves? Is there a way to get junit to print them on error? (Custom message or something? I couldn't find an |
I mean, I might replace |
I was wondering about some kind of thread local issue - maybe Java's currentTimeMillis() can lag. It does seem to always be Java 8 as well, so maybe a bona fide Java bug.
Oops, missed that one, thanks! That's definitely a bug as Github CI seems to run on really fast boxes. The other test was already using
|
(Whoah, how does that print the values? Magical reflection?) Weird. Yeah, maybe clocks are goofy on Windows. I know Chrome has some goofy things I don't understand here, so I wouldn't be too surprised. Or maybe you're racing with NTP or something, I dunno. What to do given that, I'm not sure. BoringSSL does have an API to swap out the clock if you want to consistently use one clock. Though that API is currently not Y2038-clean on Windows, so I should replace it before you all do that. This claims Anyway, if Java is using |
Wow. Okay, well, this is probably okay for session creation and seems not okay for the DTLS clock. Also yeeesh. But I suppose this means ideally we'd pass a
|
Although the DTLS retransmit clock really wants to be the monotonic clock anyway. Yeah, all this probably warrants significant reworking on the BoringSSL side. (But it probably won't help this test. No idea what to do here.) |
printf (effectively :) As far as this goes, it sounds like it's not a problem for session creation so maybe we'll just add a margin to the time checks on Windows - other platforms should pick up any real regressions. And we don't do DTLS so not gonna worry about that (sorry). |
Seems to be an off-by-one issue with the creation time versus system time making things appear they were
created a second in the future.
But only on Windows and only ever 1 second, so disabling the test for now as no real app risk.