Skip to content

Commit

Permalink
Don't process through maybe_key_update
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden committed Apr 7, 2024
1 parent 431885a commit 1de1ca2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions neqo-bin/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ impl<'a, H: Handler> Runner<'a, H> {
}

match ready(self.socket, self.timeout.as_mut()).await? {
Ready::Socket => self.process_multiple_input().await?,
Ready::Socket => self.process_multiple_input()?,
Ready::Timeout => {
self.timeout = None;
}
Expand Down Expand Up @@ -447,16 +447,14 @@ impl<'a, H: Handler> Runner<'a, H> {
Ok(())
}

async fn process_multiple_input(&mut self) -> Res<()> {
fn process_multiple_input(&mut self) -> Res<()> {
loop {
let dgrams = self.socket.recv(&self.local_addr)?;
if dgrams.is_empty() {
break;
}
self.client
.process_multiple_input(dgrams.iter(), Instant::now());
self.process_output().await?;
self.handler.maybe_key_update(&mut self.client)?;
}

Ok(())
Expand Down

0 comments on commit 1de1ca2

Please sign in to comment.