-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
.NET 7, Linux, SSL connection is being reused between independent HttpClients? #79869
Comments
Tagging subscribers to this area: @dotnet/ncl Issue DetailsDescriptionHello, The website to which I want to connect requires a client certificate and I am using two different HttpClients, one with and other without the cert. The one with it is supposed to connect and the other should not.
The scenario above works correctly under .NET 6, but on .NET 7, the outcome is different:
This problem happens only on Linux; on Windows, the behavior is correct, the same as in .NET 6. I did not test on MacOSX. Reproduction StepsVideo below Comportamento.HttpClient.ClientCertificate.Dotnet7.webmExpected behaviorHttpClients with different HttpMessageHandlers should work independently, I believe Actual behavior. Regression?This problem does not happen in .NET 6 Known WorkaroundsNo response Configuration
Other informationNo response
|
Tagging subscribers to this area: @dotnet/ncl, @vcsjones Issue DetailsDescriptionHello, The website to which I want to connect requires a client certificate and I am using two different HttpClients, one with and other without the cert. The one with it is supposed to connect and the other should not.
The scenario above works correctly under .NET 6, but on .NET 7, the outcome is different:
This problem happens only on Linux; on Windows, the behavior is correct, the same as in .NET 6. I did not test on MacOSX. Reproduction StepsVideo below Comportamento.HttpClient.ClientCertificate.Dotnet7.webmExpected behaviorHttpClients with different HttpMessageHandlers should work independently, I believe Actual behavior. Regression?This problem does not happen in .NET 6 Known WorkaroundsNo response Configuration
Other informationNo response
|
This is likely caused by #64369. The TLS resume is independent of any HTTP so the it does not matter if one or more Lastly, you can set |
This issue has been marked |
@wfurt , I made a console app to reproduce this: |
Thanks @alexandrehtrb. I understand what is happening and it is not intentional. |
reopening for 7.0 back-port.... |
fixed by #81795 for 7.0.4 |
Description
Hello,
The website to which I want to connect requires a client certificate and I am using two different HttpClients, one with and other without the cert. The one with it is supposed to connect and the other should not.
The scenario above works correctly under .NET 6, but on .NET 7, the outcome is different:
This problem happens only on Linux; on Windows, the behavior is correct, the same as in .NET 6. I did not test on MacOSX.
The website that I use to test client certificates is https://badssl.com/ (it has certificates for testing).
Code for how the HttpClients are being built: link
Reproduction Steps
Video below
Comportamento.HttpClient.ClientCertificate.Dotnet7.webm
Expected behavior
HttpClients with different HttpMessageHandlers should work independently, I believe
Actual behavior
.
Regression?
This problem does not happen in .NET 6
Known Workarounds
No response
Configuration
dotnet --info
Other information
No response
The text was updated successfully, but these errors were encountered: