macovedj opened PR #14518 from macovedj:p2-tcp-close-unread-rst to bytecodealliance:main:
Closing a P2 TCP socket with unread received data currently shuts down its retained streams before closing the native descriptor. The peer can therefore observe a clean EOF instead of the connection reset expected when closing a socket with unread data.
This PR resets connected sockets with unread data before their retained streams drop, using zero linger plus
connect(AF_UNSPEC)on Linux/Android anddisconnectxon Apple targets.
macovedj requested alexcrichton for a review on PR #14518.
macovedj requested wasmtime-wasi-reviewers for a review on PR #14518.
macovedj requested wasmtime-default-reviewers for a review on PR #14518.
github-actions[bot] added the label wasi on PR #14518.
pchickey commented on PR #14518:
Like #14461 I would need @badeend to take a look at this
Last updated: Oct 11 2026 at 04:10 UTC