Files
EasyTier/easytier-core
KKRainbow cdc04ea072 fix(portal): retain attached sessions when an outbound queue is full
A full ordinary PeerConn queue now returns BufferFull immediately. The
portal treated that per-packet rejection as a fatal attached-peer error,
ended both forwarding directions and took a healthy client offline.

Preserve typed BufferFull through send_msg_by_ip when every failed
fanout destination reported congestion. Keep logging the rejection;
mixed or other errors retain their existing fatal result. In the portal
client-to-mesh loop, skip only that rejected packet and keep the same
session running. Other send errors still end the session and clean up.

Extend the existing portal lifecycle integration test by pausing actual
mesh ingress and filling the attached ring and PeerConn queue. Reproduce
the old session termination, then verify the same generation and peer
continue sending and receiving after ingress resumes. Cover both a real
send validation error and a closed client output as terminal failures.

The regression fails on the parent and both fixed cases pass. Portal,
attached-peer and PeerManager regressions pass (73 tests in this round),
as do fmt and strict all-target clippy. No retry, queue-capacity or
transport-policy changes are introduced.
2026-11-14 18:07:50 +08:00
..