-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #690 from dsaveliev/fix-node-stop-rpc-call
Ignore disconnects when stopping node - fixes #367 This is a port of bitcoin/bitcoin#14670 This problem is related to the "stop" RPC call. It turns out that sometimes the node stops before it sends the response. That causes the client to retry the call and lead to "ConnectionRefusedError". I found out that there is a fix in bitcoin repo (in master branch, actually), related to this bug. In the nutshell, this changes removes forced exit of libevent loop, which allows to process all the requests gracefully. Test feature_shutdown.py wasn't ported because it introduces a bug bitcoin/bitcoin#14670 (comment) The "improvement" bitcoin/bitcoin#14958 requires RPC method "getrpcinfo" which isn't ported from the bitcoin codebase yet. There are other floating tests with a similar error (ConnectionRefusedError): fixes #373 fixes #484 fixes #544 Signed-off-by: Dmitry Saveliev <dima@thirdhash.com>
- Loading branch information
Showing
5 changed files
with
26 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters