Skip to content

Make StatelessTransportState clonable in order to support overlapped …#204

Open
SamHSmith wants to merge 1 commit intomcginty:mainfrom
ShieldedLabs:main
Open

Make StatelessTransportState clonable in order to support overlapped …#204
SamHSmith wants to merge 1 commit intomcginty:mainfrom
ShieldedLabs:main

Conversation

@SamHSmith
Copy link
Copy Markdown

…key usage while rekeying.

Copy link
Copy Markdown
Owner

@mcginty mcginty left a comment

Choose a reason for hiding this comment

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

Hey thanks for the PR! However, I think this design needs to be reconsidered to not have panics, it feels like too much of a footgun.

@SamHSmith
Copy link
Copy Markdown
Author

I guess I agree? But I don't see how you get around the fact that ring is fundamentally incompatible with this necessary feature for stateless transport. I guess just leave this unmerged until we come up with something. We will be using our fork with these changes so we are not blocked.

@mcginty
Copy link
Copy Markdown
Owner

mcginty commented Mar 24, 2026

@SamHSmith I'm thinking minimally something like a try_clone() -> Result<...> rather than a clone() that can panic. Sorry for not writing a longer message with more detailed suggestions before!

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.

2 participants