- close() takes the acknowledgement from the pump thread's join result: no reply
channel, no second 1 s give-up, and returning before the pump ended is not
expressible (close-survivors-untested). Tests pin the early return on
acknowledgement, the goodbye, the join, and false after the session ended.
- A test pins that try_drain releases the weight of each event (drain-weight-untested)
and that a refused subscribe is a fault while a catalog request is in flight
(refusal-during-wait-untested).
- The module Lifetime paragraph names close() and Drop's best effort; the struct doc
no longer says methods never block on the network (module-doc-omits-close).
- pump_liveness is behind the crate's own test-hooks feature, enabled for its tests by
a dev-dependency on itself, so a consumer's API does not carry it
(pump-liveness-public-hook).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A live peer observes the unsubscribes a dropped client sends, one per live id and none
for an id already unsubscribed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
peer.stall() now returns once the peer's thread has entered the stall, so the close
and Drop tests meet a peer proven silent; the two 100 ms sleeps that stood in for
that proof are gone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pump's reconnect waited out connect_timeout inline, so close() gave up at its
reply bound and then joined anyway, and Drop joined the whole wait. close and Drop
now set a closing flag the connect loop polls; the reconnect ends within one poll.
The test proves the pump is inside open() (the silent peer has seen its Connect).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>