bsc/swarm/network/stream
Janoš Guljaš 3fd6db2bf6 swarm: fix network/stream data races (#19051)
* swarm/network/stream: newStreamerTester cleanup only if err is nil

* swarm/network/stream: raise newStreamerTester waitForPeers timeout

* swarm/network/stream: fix data races in GetPeerSubscriptions

* swarm/storage: prevent data race on LDBStore.batchesC

https://github.com/ethersphere/go-ethereum/issues/1198#issuecomment-461775049

* swarm/network/stream: fix TestGetSubscriptionsRPC data race

https://github.com/ethersphere/go-ethereum/issues/1198#issuecomment-461768477

* swarm/network/stream: correctly use Simulation.Run callback

https://github.com/ethersphere/go-ethereum/issues/1198#issuecomment-461783804

* swarm/network: protect addrCountC in Kademlia.AddrCountC function

https://github.com/ethersphere/go-ethereum/issues/1198#issuecomment-462273444

* p2p/simulations: fix a deadlock calling getRandomNode with lock

https://github.com/ethersphere/go-ethereum/issues/1198#issuecomment-462317407

* swarm/network/stream: terminate disconnect goruotines in tests

* swarm/network/stream: reduce memory consumption when testing data races

* swarm/network/stream: add watchDisconnections helper function

* swarm/network/stream: add concurrent counter for tests

* swarm/network/stream: rename race/norace test files and use const

* swarm/network/stream: remove watchSim and its panic

* swarm/network/stream: pass context in watchDisconnections

* swarm/network/stream: add concurrent safe bool for watchDisconnections

* swarm/storage: fix LDBStore.batchesC data race by not closing it
2019-02-13 13:03:23 +01:00
..
intervals swarm: remove unused/dead code (#18351) 2018-12-23 17:31:32 +01:00
testing swarm/network: refactor simulation tests bootstrap (#18975) 2019-02-01 09:58:46 +01:00
common_test.go swarm: fix network/stream data races (#19051) 2019-02-13 13:03:23 +01:00
delivery_test.go swarm: fix network/stream data races (#19051) 2019-02-13 13:03:23 +01:00
delivery.go swarm/network, swarm/storage: Preserve opentracing contexts (#19022) 2019-02-08 16:57:48 +01:00
intervals_test.go swarm: fix network/stream data races (#19051) 2019-02-13 13:03:23 +01:00
lightnode_test.go swarm: fix network/stream data races (#19051) 2019-02-13 13:03:23 +01:00
messages.go swarm/network, swarm/storage: Preserve opentracing contexts (#19022) 2019-02-08 16:57:48 +01:00
norace_test.go swarm: fix network/stream data races (#19051) 2019-02-13 13:03:23 +01:00
peer.go swarm/network, swarm/storage: Preserve opentracing contexts (#19022) 2019-02-08 16:57:48 +01:00
race_test.go swarm: fix network/stream data races (#19051) 2019-02-13 13:03:23 +01:00
snapshot_retrieval_test.go swarm: CI race detector test adjustments (#19017) 2019-02-08 17:07:11 +01:00
snapshot_sync_test.go swarm: fix network/stream data races (#19051) 2019-02-13 13:03:23 +01:00
stream.go swarm: fix network/stream data races (#19051) 2019-02-13 13:03:23 +01:00
streamer_test.go swarm: fix network/stream data races (#19051) 2019-02-13 13:03:23 +01:00
syncer_test.go swarm: fix network/stream data races (#19051) 2019-02-13 13:03:23 +01:00
syncer.go swarm: remove unused/dead code (#18351) 2018-12-23 17:31:32 +01:00
visualized_snapshot_sync_sim_test.go swarm: fix network/stream data races (#19051) 2019-02-13 13:03:23 +01:00