-
Notifications
You must be signed in to change notification settings - Fork 255
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
Add native tls WSS support. #881
base: main
Are you sure you want to change the base?
Add native tls WSS support. #881
Conversation
Pull Request Test Coverage Report for Build 9563575705Details
💛 - Coveralls |
there is PR #742 which tackles same problem. Last time when I tried we faced some issues ( mentioned in discussion there ). here as this PR says "use-native-tls" overwrites "use-rustls", I think it would be better to not overwrite and let users choose what they want to use through TlsConfig, wdyt? |
Do you mean through runtime check instead of through
Seems native_tls_connector and rustls_connector can be merged together:
|
Actually it seems if in toml the
That's why I try to configure |
I tried to enable just based on feature, the following test fails:
Is there a way to keep these two features mutually exclusive? Any way, I keep the implementation of cfg handling (disable rustls code when native-tls enabled) but changed comment a bit, please check. |
Pull Request Test Coverage Report for Build 9578244851Details
💛 - Coveralls |
we can. but it's better to make them additive. i.e. being able to turn on both without any issues. |
Currently we are using IMHO using both TLS implement at the same time is not necessary and could lead to conflicts and unexpected behavior, as they are intended to be alternative options to each other. |
Any comment? IMHO we can leave additive option as an improvement (maybe based on sdroege/async-tungstenite#78 (comment)) but focus on supporting Websocket with native-tls support here. |
Pull Request Test Coverage Report for Build 9657739921Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
Any comments? |
@swanandx , can we offer the functionality first align with |
Hi, is there any chance to have the feature and leave improvements for additive configuration support in the future? |
Any comments? |
Type of change
Resolves WSS part for #866.
New feature (non-breaking change which adds functionality)
Checklist:
cargo fmt
CHANGELOG.md
if it's relevant to the users of the library. If it's not relevant mention why.