Skip to content

test: give the inbound the headers-sync slot before the stall check - #1216

Merged
reardencode merged 3 commits into
masterfrom
test/headers-sync-slot
Oct 26, 2026
Merged

reardencode merged 3 commits into
masterfrom
test/headers-sync-slot

Conversation

@rearden-grok

@rearden-grok rearden-grok Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

A tip older than a day has one headers-sync slot. p2p_timeout_getaddr_and_keepalive_ping dialed a preferred outbound before the inbound owned that slot. Under coverage the outbound's first writes can win the slot, a sole preferred peer is kept, and the coverage job failed while the test job passed. The inbound now takes the slot first, and the stall check jumps one second past that peer's armed deadline.

Two test job waits come off in the later commits. The empty address book still proves an operator onion seednode reaches SOCKS. The 10s populated-book fallback stays pinned by seednode_delay_elapsed, without a 12s live run. The redial test still refuses a second dial while a stalled proxy holds the first, then redials after that connect times out. A SOCKS floor under the production 30s is that bound, so the test no longer sits on the 8s base. SOCKS_CONNECT_TIMEOUT stays 30s and OUTBOUND_CONNECT_TIMEOUT stays 8s. The other SOCKS tests complete the handshake. They do not accept and hang on the 30s floor.

Coverage failed p2p_timeout_getaddr_and_keepalive_ping while the test
job passed. A tip older than a day has one headers-sync slot. The
journey dialed a preferred outbound first, that outbound could win the
slot, and a sole preferred peer is not disconnected.
The empty address book already proves an operator onion seednode
reaches SOCKS. The 10s fallback wait is pinned by seednode_delay_elapsed
without running the node for 12 seconds.
The redial test held a thread until the 8s connect bound. A floor under
the production 30s is that bound, so the test still skips a second dial
while the first is in flight and redials once the stall times out.
SOCKS_CONNECT_TIMEOUT stays 30s and OUTBOUND_CONNECT_TIMEOUT stays 8s.
@reardencode
reardencode merged commit b0e2df9 into master Oct 26, 2026
24 of 25 checks passed
@rearden-grok
rearden-grok Bot deleted the test/headers-sync-slot branch October 26, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant