HomeSource World

p2p/nodestate: fix deadlock during shutdown of les server (#21927)

Description

p2p/nodestate: fix deadlock during shutdown of les server (#21927)

This PR fixes a deadlock reported here: #21925

The cause is that many operations may be pending, but if the close happens, only one of them gets awoken and exits, the others remain waiting for a signal that never comes.

Details

Provenance
Martin Holst Swende <martin@swende.se>Authored on Nov 30 2020, 5:58 PM
GitHub <noreply@github.com>Committed on Nov 30 2020, 5:58 PM
Parents
rGETHa1ddd9e1d313: cmd/devp2p/internal/ethtest: add transaction tests (#21857)
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGETHe7db1dbc96fb: p2p/nodestate: fix deadlock during shutdown of les server (#21927) (authored by Martin Holst Swende <martin@swende.se>).Nov 30 2020, 5:58 PM