maflcko
commented at 4:35 PM on March 26, 2026:
member
It turns out there is no test currently to check that the RPC server does not time out under load. With "load" I mean a flood of trivial payloads. That is, the only work needed is JSON encoding and decoding of (let's say) a block of data of 2 MB or so. This may take a few milliseconds, but should never take more than a few seconds.
So add a test for this.
DrahtBot renamed this: test: Check that RPCs do not time out, even under load test: Check that RPCs do not time out, even under load on Mar 26, 2026
DrahtBot added the label Tests on Mar 26, 2026
maflcko marked this as a draft on Mar 26, 2026
DrahtBot
commented at 4:35 PM on March 26, 2026:
contributor
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--021abf342d371248e50ceaed478a90ca-->
Reviews
See the guideline for information on the review process.
If your review is incorrectly listed, please copy-paste <code><!--meta-tag:bot-skip--></code> into the comment that the bot should ignore.
<!--174a7506f384e20aa4161008e828411d-->
Conflicts
Reviewers, this pull request conflicts with the following ones:
#34566 (feature: Use different datadirs for different signets by ekzyis)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
<!--5faf32d7da4f0f540f40219e4f7537a3-->
maflcko
commented at 4:36 PM on March 26, 2026:
member
Draft for now, because the test fails :(
Edit: It fails in CI, but it passes locally for me:
maflcko
commented at 5:30 PM on March 26, 2026:
member
cc @dergoegge Can you copy-paste the Python test into Antithesis to see if it fails there?
maflcko marked this as ready for review on Apr 1, 2026
maflcko renamed this: test: Check that RPCs do not time out, even under load test: Check that RPCs do not time out, even under load. Disable Nagle's on Apr 1, 2026
maflcko force-pushed on Apr 1, 2026
rkrux
commented at 5:55 PM on April 1, 2026:
contributor
Can this be tested with 120 commits or so?
maflcko force-pushed on Apr 1, 2026
maflcko renamed this: test: Check that RPCs do not time out, even under load. Disable Nagle's test: Check that RPCs do not time out, even under load on Apr 1, 2026
maflcko
commented at 7:05 PM on April 1, 2026:
member
Can this be tested with 120 commits or so?
Sorry, turns out I was wrong, and I spun up a new connection while disabling Nagle's. Obviously spinning up a new connection is already known to work around the issue and Nagle's didn't seem to affect it.
maflcko added the label DrahtBot Guix build requested on Apr 4, 2026
DrahtBot
commented at 10:57 AM on April 7, 2026:
contributor
<!--9cd9c72976c961c55c7acef8f6ba82cd-->
Guix builds (on x86_64) [untrusted test-only build, possibly unsafe, not for production use]
Re-using the same rpc connection on multiple threads is obviously
unsafe, so this helper can be used to create one connection per thread.
This refactor does not change any behavior and can be reviewed with the
git options:
--color-moved=dimmed-zebra --color-moved-ws=ignore-all-space
faab8e28db
test: Check that RPCs do not time out, even under loadfa86bd62bd
maflcko force-pushed on Apr 21, 2026
enirox001
commented at 2:33 PM on April 21, 2026:
contributor
Concept ACK
maflcko marked this as a draft on Apr 21, 2026
maflcko
commented at 2:38 PM on April 21, 2026:
member
Turning into draft while CI is red, but the code should be correct, reviewable, and mergeable after libevent is nuked.
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-04-22 09:12 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me