Skip to content

feat(tls): add LazyConfigAcceptor for rustls#686

Merged
Berrysoft merged 1 commit intocompio-rs:masterfrom
Berrysoft:dev/rtls-lazy-acceptor
Feb 14, 2026
Merged

feat(tls): add LazyConfigAcceptor for rustls#686
Berrysoft merged 1 commit intocompio-rs:masterfrom
Berrysoft:dev/rtls-lazy-acceptor

Conversation

@Berrysoft
Copy link
Member

LazyConfigAcceptor is rustls-only.

@Berrysoft Berrysoft self-assigned this Feb 14, 2026
@Berrysoft Berrysoft added the package: tls Related to compio-tls label Feb 14, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a LazyConfigAcceptor for rustls, which is a wrapper around futures_rustls::LazyConfigAcceptor that integrates with compio's async I/O types. This feature allows server implementations to inspect the TLS ClientHello message before completing the handshake, enabling use cases like SNI-based routing or dynamic certificate selection.

Changes:

  • New rtls module providing rustls-specific server TLS functionality
  • LazyConfigAcceptor type for lazy TLS server handshake initialization
  • StartHandshake type providing access to ClientHello and handshake completion methods

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
compio-tls/src/rtls.rs New module implementing LazyConfigAcceptor and StartHandshake wrappers for rustls lazy server handshake
compio-tls/src/lib.rs Module declaration and re-export of rtls module with proper rustls feature gating

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@George-Miao George-Miao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@George-Miao George-Miao added the enhancement New feature or request label Feb 14, 2026
@Berrysoft Berrysoft merged commit 47150fa into compio-rs:master Feb 14, 2026
59 of 62 checks passed
@Berrysoft Berrysoft deleted the dev/rtls-lazy-acceptor branch February 14, 2026 06:28
@github-actions github-actions bot mentioned this pull request Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request package: tls Related to compio-tls

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants