Skip to content

v1.0.2

Choose a tag to compare

@themoein100 themoein100 released this 11 Aug 13:16
· 13 commits to main since this release

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.

  • DownlinkPump now 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.
  • XrayPacketTunnelProvider ends the session by default and exposes packetPathDidFail(reason:) to override.

Binary target is unchanged from v1.0.1 (LibXray built from Xray-core v1.260327.0).