• Felföldi Zsolt's avatar
    les: fix retriever logic (#16776) · 25982375
    Felföldi Zsolt authored
    This PR fixes a retriever logic bug. When a peer had a soft timeout
    and then a response arrived, it always assumed it was the same peer
    even though it could have been a later requested one that did not time
    out at all yet. In this case the logic went to an illegal state and
    deadlocked, causing a goroutine leak.
    
    Fixes #16243 and replaces #16359.
    Thanks to @riceke for finding the bug in the logic.
    25982375
Name
Last commit
Last update
..
flowcontrol Loading commit data...
api_backend.go Loading commit data...
backend.go Loading commit data...
bloombits.go Loading commit data...
distributor.go Loading commit data...
distributor_test.go Loading commit data...
execqueue.go Loading commit data...
execqueue_test.go Loading commit data...
fetcher.go Loading commit data...
handler.go Loading commit data...
handler_test.go Loading commit data...
helper_test.go Loading commit data...
metrics.go Loading commit data...
odr.go Loading commit data...
odr_requests.go Loading commit data...
odr_test.go Loading commit data...
peer.go Loading commit data...
protocol.go Loading commit data...
randselect.go Loading commit data...
randselect_test.go Loading commit data...
request_test.go Loading commit data...
retrieve.go Loading commit data...
server.go Loading commit data...
serverpool.go Loading commit data...
sync.go Loading commit data...
txrelay.go Loading commit data...