Skip to content

Configure explicit HTTP transport pooling for Bitcoin Core RPC client - #76

Merged
pin2t merged 1 commit into
masterfrom
core-http-pool
Jul 30, 2026
Merged

Configure explicit HTTP transport pooling for Bitcoin Core RPC client#76
pin2t merged 1 commit into
masterfrom
core-http-pool

Conversation

@pin2t

@pin2t pin2t commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Replace bare &http.Client{} with a transport that explicitly sets MaxIdleConnsPerHost=10, MaxConnsPerHost=20, IdleConnTimeout=90s and enables keepalive. This keeps idle connections alive and caches them instead of tearing down and reopening sockets, avoiding the buildup of TIME_WAIT connections when the bot makes frequent RPC calls.

Replace bare &http.Client{} with a transport that explicitly sets
MaxIdleConnsPerHost=10, MaxConnsPerHost=20, IdleConnTimeout=90s
and enables keepalive. This keeps idle connections alive and caches
them instead of tearing down and reopening sockets, avoiding the
buildup of TIME_WAIT connections when the bot makes frequent RPC calls.
@pin2t pin2t self-assigned this Jul 30, 2026
@pin2t
pin2t merged commit 20db590 into master Jul 30, 2026
1 check passed
@pin2t
pin2t deleted the core-http-pool branch July 30, 2026 17:51
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