Skip to content

Commit

Permalink
[fix] buffer full; poll_ready must be called first
Browse files Browse the repository at this point in the history
  • Loading branch information
nguquen authored and jdahlq committed Apr 5, 2024
1 parent 554cc7f commit ab6e0f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ where
}

fn call(&mut self, req: http::Request<ReqBody>) -> Self::Future {
AsyncResponseFuture::new(req, &mut self.f, self.inner.clone())
let clone = self.inner.clone();
let inner = std::mem::replace(&mut self.inner, clone);
AsyncResponseFuture::new(req, &mut self.f, inner)
}
}

Expand Down

0 comments on commit ab6e0f6

Please sign in to comment.