go-ethereum/p2p/protocols
Ferenc Szabo 3d71141693 p2p/protocols: fix rare data race in Peer.Handshake()
The race occurred in the `!p.Inbound()` case if `send()`
did return an error.

Write #1: in handle closure `rhs = msg` (goroutine)
Write #2: `return nil, error` => `nil` is written to `rhs` (main thread)

fixes ethersphere/go-ethereum#1160
2019-01-25 17:19:15 +01:00
..
accounting.go swarm/metrics: Send the accounting registry to InfluxDB (#18470) 2019-01-24 18:57:20 +01:00
accounting_api.go p2p/protocols: accounting metrics rpc (#18336) 2018-12-22 06:04:03 +01:00
accounting_simulation_test.go Accounting metrics reporter (#18136) 2018-11-26 17:05:18 +01:00
accounting_test.go p2p accounting (#17951) 2018-10-26 00:26:31 +02:00
protocol.go p2p/protocols: fix rare data race in Peer.Handshake() 2019-01-25 17:19:15 +01:00
protocol_test.go p2p/testing, swarm: remove unused testing.T in protocol tester (#18500) 2019-01-24 17:23:34 +01:00
reporter.go Accounting metrics reporter (#18136) 2018-11-26 17:05:18 +01:00
reporter_test.go swarm/metrics: Send the accounting registry to InfluxDB (#18470) 2019-01-24 18:57:20 +01:00