-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Confirm X509ChainPolicy.UrlRetrievalTimeout behavior across Windows/Linux #38875
Comments
@bartonjs i can grab this one and work on some tests over the weekend. |
My testing thoughts were
More and less complex things are possible, but that felt like the heart of the problem to me. |
Some random commentary of findings. I'll keep updating this with things / behaviors since I can't be trusted not to lose a Text Editor document, apparently. Linux revocation:
Windows Revocation:
I'm still tinkering with how to roll all of this in to a test, but, those are the behaviors I have observed so far. |
@bartonjs I guess to better understand what you're looking for, are you wanting a test that just documents current behavior, or a few changes / issues to start unifying the behavior? As it is, a test is doable but the behaviors are different enough that the test body is basically "If OpenSSL, do this, if Windows, do this entirely different test". |
Ideally, the test tests Windows, and then the Linux code changes to match it. |
To clarify one thing: URT has no affect on AIA fetching in Windows. As far as I can tell, there is no way to control AIA fetching timeouts in Win32. |
@bartonjs I think this issue can be closed. I had the PR as "contributes to" since the PR didn't initially cover negatives and caps, but those are in now. |
Is there anything else for testing... CRL/OCSP timing out and falling back to the other one? Anything related to AIA? If there's anything left, I'll move it to 6 (since we got the most important parts in), if not, we can close. |
Hm, yeah there are at least some tests there that could be written.
I added tests for Linux for AIA timeouts. They aren't in there for Windows since URT doesn't impact AIA fetches on Windows.
I think that is the most sensible thing. |
Now that we have better testing capabilities for URL retrieval scenarios, we should ensure that Windows and Linux are behaving similarly.
I think currently Linux uses it cumulative, Windows uses it per fetch, and Linux uses 0 as "forever" but Windows might default to 15 seconds (or might cap at 15 seconds?)
The text was updated successfully, but these errors were encountered: