Repository navigation
v1.0.2
Report dead packet paths instead of dying silently.
Both directions of the packet bridge are framed as [4-byte AF][IP packet] over a SOCK_STREAM socketpair, which has no delimiter to resynchronise on. A truncated frame or a hard socket error used to end delivery for good — the reader thread exited with no log, no callback and no restart, while Xray stayed up and the session stayed .connected. From the outside that looks like a video frozen on its first frame, not a tunnel that stopped.
DownlinkPumpnow reports why it stopped: end-of-stream, framing desync (with address family and offset), or errno.- The uplink reports a write that gave up mid-buffer, which leaves a partial frame for Xray's reader.
- Both surface through
XrayBridge.onPacketPathFailure. XrayPacketTunnelProviderends the session by default and exposespacketPathDidFail(reason:)to override.
Binary target is unchanged from v1.0.1 (LibXray built from Xray-core v1.260327.0).