Splits vote_ep_err_handler into a real-vote handler and a new pre_vote_ep_err_handler, each registered at its existing (already separate) connection-setup call site. Extracts the identical CTRL_PRIMARY-role cleanup into a shared vote_ep_handle_promoted_disconnect helper, behavior unchanged. Each handler's election-phase branch now routes a post-connect failure (RDHUP/SSL-error/remote-close after connect, before any reply) through the same production tally the connect-time failure branches already use (vote_reply_dispatch / pre_vote_reply_dispatch, bug-1423/1424's fix), instead of the legacy handle_request_vote_reply that never updated the tally. Closes the one failure window bug-1423 didn't cover. 1060 -> 1061 tests, 0 failures. PreVote-specific test coverage is task 3.2's scope (pre_vote_reply_dispatch has no hook seam analogous to xce_vote_reply_hook; verified only by code symmetry + full-suite regression here). |
||
|---|---|---|
| .. | ||
| settings | ||
| specs | ||
| steering | ||