http: prevent race condition between worker thread and I/O thread
This commit fixes a subtle timing bug in Bitcoin Core's built-in HTTP server. Under a specific race between a worker thread preparing a response and the I/O thread sending data, a connection could get permanently stuck waiting to write eve…
73da2a8aby Matthew Zipkin+24−102 files