• Felix Lange's avatar
    p2p: fix Peer shutdown deadlocks · f1d710af
    Felix Lange authored
    There were multiple synchronization issues in the disconnect handling,
    all caused by the odd special-casing of Peer.readLoop errors. Remove the
    special handling of read errors and make readLoop part of the Peer
    WaitGroup.
    
    Thanks to @Gustav-Simonsson for pointing at arrows in a diagram
    and playing rubber-duck.
    f1d710af
Name
Last commit
Last update
..
discover Loading commit data...
nat Loading commit data...
handshake.go Loading commit data...
handshake_test.go Loading commit data...
message.go Loading commit data...
message_test.go Loading commit data...
peer.go Loading commit data...
peer_error.go Loading commit data...
peer_test.go Loading commit data...
protocol.go Loading commit data...
rlpx.go Loading commit data...
rlpx_test.go Loading commit data...
server.go Loading commit data...
server_test.go Loading commit data...
testlog_test.go Loading commit data...