Review report

core: PR #36340

🟡 Minor

Capped waits can fail before the requested RPC timeout (src/util/sock.cpp:168, head)

When the remaining wait exceeds this cap, Sock::Wait can return successfully with no event after about 24.8 days. HTTPClient::Recv treats that result as a timeout and throws, even though its original deadline is still in the future. An RPC configured with -rpcclienttimeout=0 (represented as five years) or a longer explicit timeout can therefore fail early if the server has not sent response data. Repeat capped waits until an event occurs or the caller's deadline expires to preserve the requested timeout.

Review coverage was incomplete. The adversarial review had incomplete evidence. The design review did not complete.