Skip to content
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

Switch to rustls #26

Merged
merged 1 commit into from
Dec 25, 2023
Merged

Switch to rustls #26

merged 1 commit into from
Dec 25, 2023

Conversation

azat
Copy link
Owner

@azat azat commented Dec 25, 2023

Interesting that it shows only slightly difference in binary size.

type               | size (bytes)
-------------------|-------------
rustls release     | 105'733'800
rustls debug       | 378'907'624
native-tls release | 104'115'576
native-tls debug   | 366'341'720

Refs: azat-rust/clickhouse-rs#1 (will review this changes by myself firstly and then will submit to upstream)
Refs: suharev7/clickhouse-rs#209
Fixes: #18

Refs: https://jbp.io/2019/07/01/rustls-vs-openssl-performance.html

Interesting that it shows only slightly difference in binary size.

    type               | size (bytes)
    -------------------|-------------
    rustls release     | 105'733'800
    rustls debug       | 378'907'624
    native-tls release | 104'115'576
    native-tls debug   | 366'341'720

Interesting that during testing I've found out that rustls was
"significantly" faster on gitlab CI (at least) during connect phase,
since for native-tls I have to increase timeout few times (now connect
timeout is 5s for this build), while for rustls it works out of the box
(default connect timeout is 500ms).
@azat
Copy link
Owner Author

azat commented Dec 25, 2023

Interesting that during testing I've found out that rustls was "significantly" faster on gitlab CI (at least) during connect phase, since for native-tls I have to increase timeout few times (now connect timeout is 5s for this build), while for rustls it works out of the box (default connect timeout is 500ms)

@azat azat merged commit 1b061f9 into main Dec 25, 2023
4 checks passed
@azat azat deleted the rustls branch December 25, 2023 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support OpenSSL 3.0
1 participant