• Ferenc Szabo's avatar
    p2p/protocols: fix data race in TestProtocolHook (#19242) · f82185a4
    Ferenc Szabo authored
    dummyHook's fields were concurrently written by nodes and read by
    the test. The simplest solution is to protect all fields with a mutex.
    
    Enable: TestMultiplePeersDropSelf, TestMultiplePeersDropOther as they
    seemingly accidentally stayed disabled during a refactor/rewrite
    since 1836366a.
    
    resolves ethersphere/go-ethereum#1286
    f82185a4
Name
Last commit
Last update
..
discover Loading commit data...
discv5 Loading commit data...
enode Loading commit data...
enr Loading commit data...
nat Loading commit data...
netutil Loading commit data...
protocols Loading commit data...
simulations Loading commit data...
testing Loading commit data...
dial.go Loading commit data...
dial_test.go Loading commit data...
message.go Loading commit data...
message_test.go Loading commit data...
metrics.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...