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

quic: Ensure that peers can be accepted before spawning the worker task #349

Open
Tracked by #311
lexnv opened this issue Feb 27, 2025 · 0 comments
Open
Tracked by #311
Labels
priority: low Nice-to-have improvements, optimizations, or future considerations todo Extracted from code todos

Comments

@lexnv
Copy link
Collaborator

lexnv commented Feb 27, 2025

// TODO: verify that the peer can actually be accepted
let mut protocol_set = self.context.protocol_set();
protocol_set.report_connection_established(connection_id, peer, address).await?;
tokio::spawn(async move {
let quic_connection =
QuicConnection::new(peer, protocol_set, connection, connection_id);
if let Err(error) = quic_connection.start().await {
tracing::debug!(target: LOG_TARGET, ?error, "quic connection exited with an error");
}
});

@lexnv lexnv added priority: low Nice-to-have improvements, optimizations, or future considerations todo Extracted from code todos labels Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: low Nice-to-have improvements, optimizations, or future considerations todo Extracted from code todos
Projects
None yet
Development

No branches or pull requests

1 participant