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

Access application context from tls connection #2448

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update
taikulawo committed Jan 15, 2025
commit 3a771113bcb16520fafedb4253086f26ba0a8486
2 changes: 1 addition & 1 deletion quic/s2n-quic-tls/src/session.rs
Original file line number Diff line number Diff line change
@@ -158,7 +158,7 @@ impl tls::Session for Session {
}
// TODO Add new s2n-tls new api, take and put in quic::connection
let ctx: Option<Box<dyn Any + Send + Sync>> =
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this need a 'static as well?

Copy link
Author

@taikulawo taikulawo Feb 21, 2025

Choose a reason for hiding this comment

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

self.connection.application_context_owned();
self.connection.take_application_context();
context.on_application_context(ctx);
Poll::Ready(Ok(()))
}