Async TLS for the Tokio runtime
Go to file
Geoff Jacobsen fcbae20f8c
add: take_io method to LazyConfigAcceptor (#145)
* add: take_io method to LazyConfigAcceptor

The `take_io` method can be used to take back ownership of the client IO stream when an error occurs
during clientHello handshake.

An example of this is when a client tries to connect to an TLS socket expecting it to be plain text
connection. In this case take_io can be used to send a 400 response, "The plain HTTP request was
sent to HTTPS port", back to the client.

* rename test lazy_config_acceptor_take_io
2023-06-06 14:15:07 +08:00
.github/workflows Fix early-data test (#132) 2023-02-19 08:40:05 +08:00
tokio-native-tls tokio-native-tls: remove unused dependencies (#133) 2023-03-30 23:29:17 +08:00
tokio-rustls add: take_io method to LazyConfigAcceptor (#145) 2023-06-06 14:15:07 +08:00
.gitignore Auto-generate TLS server certificate for unix platform (#8) 2020-04-03 10:16:23 -04:00
Cargo.toml tokio-rustls: release 0.14.1 (#27) 2020-08-31 22:22:46 +08:00
LICENSE Initial commit 2020-01-09 18:36:35 -05:00
README.md Fix the broken Guides link (#22) 2020-08-31 10:09:40 -04:00

Tokio Tls

Overview

This crate contains a collection of Tokio based TLS libraries.

Getting Help

First, see if the answer to your question can be found in the Tutorials or the API documentation. If the answer is not there, there is an active community in the Tokio Discord server. We would be happy to try to answer your question. Last, if that doesn't work, try opening an issue with the question.

Contributing

🎈 Thanks for your help improving the project! We are so happy to have you! We have a contributing guide to help you get involved in the Tokio project.

In addition to the crates in this repository, the Tokio project also maintains several other libraries, including:

  • tokio: A runtime for writing reliable, asynchronous, and slim applications with the Rust programming language.

  • tracing (formerly tokio-trace): A framework for application-level tracing and async-aware diagnostics.

  • mio: A low-level, cross-platform abstraction over OS I/O APIs that powers tokio.

  • bytes: Utilities for working with bytes, including efficient byte buffers.

Supported Rust Versions

Tokio is built against the latest stable, nightly, and beta Rust releases. The minimum version supported is the stable release from three months before the current stable release version. For example, if the latest stable Rust is 1.29, the minimum version supported is 1.26. The current Tokio version is not guaranteed to build on Rust versions earlier than the minimum supported version.

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Tokio by you, shall be licensed as MIT, without any additional terms or conditions.