1 suggestion
Optional improvements
[suggestion] · Idle-timeout coverage no longer distinguishes the configured value from the default
Removing the upper bound lets the idle-timeout assertions accept a 30-second default instead of the configured two seconds; the mock-clock tests do not cover that integration, although the current production path is correct.
Location: test/functional/interface_http.py:101 (head).
Details and suggested fix
Both callers set -rpcservertimeout=2, but expect_timeout now accepts an EOF after about 30 seconds because the client socket timeout is normally 60 seconds, scaled by timeout_factor. If InitHTTPServer stopped calling SetServerTimeout, the server would retain its 30-second initializer. The deleted assertion would reject that result; the remaining assertions would accept it. http_should_disconnect_tests supplies its timeout directly to ShouldDisconnect, while the socket tests do not verify the configured idle deadline. They therefore do not replace this coverage, and the new comment overstates what they establish. Finite delays introduced by the I/O loop can similarly escape the remaining checks.
Add deterministic coverage that carries a nondefault option through initialization and SetServerTimeout to actual disconnection via DisconnectClients, using the mock clock rather than a tight wall-clock bound. If that coverage is deferred, qualify the comment to acknowledge the unverified configured-value and loop timing. This is a source-inferred coverage gap, not an observed runtime failure.