mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 10:50:37 +00:00
net: Warn only once when a proxy or the I2P proxy is unreachable #36969
No reviewers
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!36969
Loading…
Reference in a new issue
No description provided.
Delete branch "2026-11-i2p-proxy-log"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
There seems to be consensus in #36759 to use
LogWarnThenDebugwhen the Tor control port can't be reached as this makes such cases much less noisy. This pull aligns SOCKS5 proxies (-proxy,-onion) and the I2P SAM proxy (-i2psam) with that, making them also less noisy.Until now every failed attempt logged the
connect()failure at info level, and I2P additionally logged "Couldn't listen" as an error. Now the first failure is logged as a warning and later ones only at debug level.The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
External sites
Reviews
See the guideline and AI policy for information on the review process.
A summary of reviews will appear here.
Conflicts
Reviewers, this pull request conflicts with the following ones:
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.
🔵 Suggestion · The first proxy/SAM warning omits the connection error
With default logging, refused TCP connections and missing or inaccessible Unix sockets now produce an initial SOCKS/SAM warning that identifies the endpoint but omits the OS error needed to distinguish these causes.
Location:
src/netbase.cpp:685(head).🔵 Suggestion · One SOCKS endpoint consumes the warning for every configured endpoint
With distinct
-proxyand-onionor per-network endpoints, a connection failure on one can suppress the other's first warning at default logging.Location:
src/netbase.cpp:813(head).🔵 Suggestion · The proxy test misses repeated info-level
connect()failuresThe new proxy subtest would still pass if
Proxy::Connect()reverted tomanual_connection=true, leaving the repeated info-level connection failures that this PR aims to suppress.Location:
test/functional/feature_proxy.py:512(head).Review coverage was incomplete.
Reviewed:
058e26fdddfb· Review report · Previous reportspermalink