mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-21 02:33:23 +00:00
Log and drop send errors instead of forwarding them, which tears down the connection
This commit is contained in:
@@ -1458,7 +1458,14 @@ impl State {
|
||||
self.buffered_transmit = Some(t);
|
||||
return Ok(false);
|
||||
}
|
||||
Poll::Ready(Err(e)) => return Err(e),
|
||||
Poll::Ready(Err(e)) => {
|
||||
// Treat send errors as dropped packets rather than
|
||||
// killing the connection. UDP is unreliable by nature,
|
||||
// and transient errors (e.g. ENOMEM on embedded lwIP)
|
||||
// should not terminate a QUIC connection. If the socket
|
||||
// is truly dead, QUIC idle timeout will clean up.
|
||||
tracing::debug!("UDP send error (packet dropped): {e}");
|
||||
}
|
||||
Poll::Ready(Ok(())) => {}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user