Эх сурвалжийг харах

Exhaustion of transmit buffers should not be a reportable error.

whitequark 7 жил өмнө
parent
commit
017210ea28
1 өөрчлөгдсөн 1 нэмэгдсэн , 0 устгасан
  1. 1 0
      src/iface/ethernet.rs

+ 1 - 0
src/iface/ethernet.rs

@@ -184,6 +184,7 @@ impl<'a, 'b, 'c, DeviceT: Device + 'a> Interface<'a, 'b, 'c, DeviceT> {
                     &mut Socket::__Nonexhaustive => unreachable!()
                 };
             match (device_result, socket_result) {
+                (Err(Error::Exhausted), Ok(())) => break, // nowhere to transmit
                 (Ok(()), Err(Error::Exhausted)) => (), // nothing to transmit
                 (Err(err), _) | (_, Err(err)) => {
                     net_debug!("cannot dispatch egress packet: {}", err);