bitcoin-cli PR replaces libevent HTTP client with Sock
Bitcoin Core PR #34342, submitted by fjahr on Apr 27, 2026, replaces bitcoin-cli’s libevent-based HTTP client with a synchronous implementation built directly on the Sock class.
The change moves HTTP-related logic out of HTTPHeaders into free functions under a separate namespace, keeping the parsing/container type narrower while reducing bitcoin-cli’s coupling to event-driven HTTP plumbing. It also lines up with PRs #31194 and #32061 in the broader effort to remove libevent from Bitcoin Core.
Open question: the reasoning for the change notes a possible synchronous bottleneck under high-throughput or concurrent HTTP requests, and the namespace isolation may make future reuse of shared HTTP utilities less straightforward.
Source:
#Bitcoin #BitcoinCore #bitcoincli #libevent #Sock
GitHub
cli: Replace libevent usage with simple http client by fjahr · Pull Request #34342 · bitcoin/bitcoin
Part of the effort to remove the libevent dependency altogether, see #31194
This takes the parsing logic from the HTTPHeaders class from #32061 and...
GitHub
cli: Replace libevent usage with simple http client by fjahr · Pull Request #34342 · bitcoin/bitcoin
Part of the effort to remove the libevent dependency altogether, see #31194
This takes the parsing logic from the HTTPHeaders class from #32061 and...