macovedj edited PR #14443.
macovedj edited PR #14443:
Currently, if a client resets after its connection is accepted,
remote-addresscan fail because we query the socket again instead of keeping the address returned byaccept. This PR preserves that address so it can still be accessed after a reset.
I also updatedcargo-fuzzbecause installing the pinned version from scratch was failing in CI.
:memo: pchickey submitted PR review.
:speech_balloon: pchickey created PR review comment:
In this case (implicitly,
accepted_peer: None), if stream.peer_addr() succeeds, wouldn't we want to save the peer address in accepted_peer? (That would require the whole method to become &mut self). And in that case, we could rename the struct member topeer, dropping theaccepted?
macovedj updated PR #14443.
:memo: macovedj submitted PR review.
:speech_balloon: macovedj created PR review comment:
Ah yeah, I only cached the address returned by
acceptbecause that was the case I ran into. Caching successfulpeer_addrresults makes sense too.
:thumbs_up: pchickey submitted PR review.
pchickey has enabled auto merge for PR #14443.
pchickey added PR #14443 wasi: preserve accepted TCP peer addresses after reset to the merge queue.
:check: pchickey merged PR #14443.
pchickey removed PR #14443 wasi: preserve accepted TCP peer addresses after reset from the merge queue.
Last updated: Oct 11 2026 at 04:10 UTC