X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=src%2Fbin%2Fserver.rs;h=fec69cf75edacbf7d56681ed33717c429c36e24f;hb=029c0012c14c3a373d63eafc4470a73354fd8a91;hp=ceceddbdd795f3105f3cab7202480099f91a67c4;hpb=3ad612ad9f8c57d2b17235a619dedefbf157f857;p=hippotat.git diff --git a/src/bin/server.rs b/src/bin/server.rs index ceceddb..fec69cf 100644 --- a/src/bin/server.rs +++ b/src/bin/server.rs @@ -30,6 +30,7 @@ struct WebRequest { // end delimiter for the metadata not yet located, but in here somewhere initial: Box<[u8]>, initial_remaining: usize, + length_hint: usize, body: hyper::body::Body, reply_to: tokio::sync::oneshot::Sender, warnings: Warnings, @@ -184,6 +185,7 @@ async fn handle( let wreq = WebRequest { initial, initial_remaining, + length_hint, body, warnings: mem::take(&mut warnings), reply_to @@ -254,7 +256,7 @@ async fn run_client(_ic: Arc, req = web.recv() => { let WebRequest { - initial, initial_remaining, body, + initial, initial_remaining, length_hint, body, reply_to, warnings, } = req.ok_or_else(|| anyhow!("webservers all shut down!"))?;