You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f88c036
Browse filesBrowse the repository at this point in the historyBrowse files
fix(client): replace a registration that no longer describes a live service
A registration can outlive the process it names: after a reboot its PID can
belong to an unrelated process, and its URL can answer as a different one. The
previous commit held back any live owner, so such a registration was never
replaced and ensure() waited until promiseTimeout.
Recruitment now depends on what the poll learned. Only an owner that did not
answer, either by timing out or across a suspend, holds its port for the
recovery window. A dead or refusing owner gets one spawn delay and then a
replacement, as before.
Measure the unresponsive window on the monotonic clock, so a wall-clock jump on
resume cannot close it with a single timed-out probe.
- service-contender: ownerState(info, probe, alive), shouldRecruit(OwnerState)
- both clients: pass performance.now() to the recovery policy
- tests: owner classification, the contender gate per state, and a registration
whose PID belongs to another process (times out without this change)
0 commit comments