cloudflare / cloudflare/boring

Support tokio's UdpSocket for DTLS connections in tokio-boring?

Open
#151 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
522
Forks
171
PR merge metrics
No merged PRs in 30d

Description

I am writing a wrapper for tokio's `UdpSocket` to enable use via `tokio-boring`. There are two use cases for DTLS connections, one with a one-to-one connection where each partner can use `connect()`, and one where a server allows multiple clients to connect and maintains a separate DTLS connection to each client via a single socket. This separation makes a straight-forward implementation of the `AsyncRead`/`AsyncWrite` traits for `UdpSocket` impossible, thus requiring the wrapper.

Would there be interest to add this to tokio-boring? If so, I can clean it up and document it for a PR.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.