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

fix(client): remove needless process_output in process_input #1922

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
5 changes: 2 additions & 3 deletions neqo-bin/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,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 @@ -441,15 +441,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?;
}

Ok(())
Expand Down
Loading