Skip to content
Open
Changes from all commits
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
4 changes: 3 additions & 1 deletion tokio-quiche/src/quic/io/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,9 @@ where
async fn wait_for_data_or_handshake<A: ApplicationOverQuic>(
&mut self, qconn: &mut QuicheConnection, quic_application: &mut A,
) -> QuicResult<WaitForDataOrHandshakeDirective> {
if quic_application.should_act() {
let connection_ready = qconn.is_established() || qconn.is_in_early_data();

if connection_ready && quic_application.should_act() {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This change makes some sense to me. What tests could we add for this case to ensure we don't regress?

// Poll the application to make progress.
//
// Once the connection has been established (i.e. the handshake is
Expand Down