forked from TrueCloudLab/neoneo-go
b7dee156e2
Why a deadlock can occur: 1. (*DefaultDiscovery).run() has a for loop over requestCh channel. 2. (*DefaultDiscovery).RequestRemote() send to this channel while holding a mutex. 3. (*DefaultDiscovery).RegisterBadAddr() tries to take mutex for write. 4. Second select-case can't take mutex for read because of (3). |
||
---|---|---|
.. | ||
compiler | ||
consensus | ||
core | ||
crypto | ||
encoding | ||
internal | ||
interop | ||
io | ||
network | ||
rpc | ||
smartcontract | ||
util | ||
vm | ||
wallet |