Files
bitcoin/test/functional/interface_http.py
Matthew Zipkin a51df9b0ec test: tolerate race condition in interface_http.py
Fixes #35632 by allowing both outcomes of a race condition.
The server behavior is unchanged: in response to a malformed request
we send an error code and disconnect. The issue is that sometimes
on Windows the RST is caught by the platform and the receive buffer
is discarded before the Python client can process it with recv().

We can also be much more polite to misbehaving clients by
implementing SO_LINGER as suggested in #35780 but that will require
more review.
2026-09-02 13:42:57 -04:00

30 KiB
Executable File