Skip to content

Retain a lazy stop when repeated. - #1065

Merged
evoskuil merged 1 commit into
libbitcoin:masterfrom
echennells:fix/handshake-stop
Nov 27, 2026
Merged

evoskuil merged 1 commit into
libbitcoin:masterfrom
echennells:fix/handshake-stop

Conversation

@echennells

@echennells echennells commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

A repeated stop ends an outstanding lazy stop whatever its reason, so a second stop for a graceful reason cuts the lingering close that the first one started. This retains the lazy stop unless the repeated reason is itself hard.

Required by libbitcoin/libbitcoin-server#1233, which completes a handshake upon channel stop, as session::handle_handshake stops a failed channel a second time.

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 94.332% (+0.02%) from 94.31% — echennells:fix/handshake-stop into libbitcoin:master

@evoskuil
evoskuil merged commit ab834b8 into libbitcoin:master Nov 27, 2026
23 checks passed
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.

3 participants