let status = resp.status();
let mut resp = resp.into_body();
let max_body = c.ic.max_batch_down.sat() + MAX_OVERHEAD;
- let resp = read_limited_bytes(max_body, default(), &mut resp).await
+ let resp = read_limited_bytes(
+ max_body, default(), default(), &mut resp
+ ).await
.discard_data().context("fetching response body")?;
if ! status.is_success() {
if let Some(got) = got {
//eprintln!("got={:?}", DumpHex(&got));
- match checkn(SlipNoConv,ic.mtu, &got, &mut rx_queue, |header| {
+ match checkn(SlipNoConv,ic.mtu, &got, |header| {
let addr = ip_packet_addr::<true>(header)?;
if addr != ic.link.client.0 { throw!(PE::Dst(addr)) }
Ok(())
- }, |e| error!("{} #{}: rx discarding: {}", &ic, req_num, e)) {
+ }, |o| rx_queue.push(o),
+ |e| error!("{} #{}: rx discarding: {}", &ic, req_num, e))
+ {
Ok(()) => reporter.lock().success(),
Err(ErrorOnlyBad) => {
reqs.push(Box::pin(async {