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

Using rustls transparently on non-linux platforms? #27

Open
jeromegn opened this issue Sep 18, 2023 · 1 comment
Open

Using rustls transparently on non-linux platforms? #27

jeromegn opened this issue Sep 18, 2023 · 1 comment

Comments

@jeromegn
Copy link
Contributor

I've been wondering if it would be a pain to transparently use rustls for platforms that can't support kernel TLS offloading?

It would make it easier to develop on multiple platforms and still have it highly optimized on linux.

Any thoughts? I don't know if this is a good idea at all...

@fasterthanlime
Copy link
Collaborator

I was going to say "hring does this" but it actually doesn't: it does have a "maybe-uring" crate that uses io_uring on Linux and "regular tokio" on macOS/Windows (making it possible to develop hring on those nice Apple Silicon laptops), but the hring-bingo-ktls sample is Linux-only.

I guess it would be fairly easy to come up with a "maybe-ktls" crate? There'd be a bunch of overhead, sure...

I'd like to fully fix #24 firstbecause it might involve interface changes (just need to land nix-rust/nix#2065 )

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

No branches or pull requests

2 participants