status-go/geth/peers
Dmitry Shulyak 5014e4e3b0
Fix two race conditions in peerpool tests (#827)
Multiple concurrent topic pool stops could result in the close of the closed
quit channel. Fixed by using atomic compare and swap and closing only if swap
happened.

Added events feed to peer pool for tests purpose. Otherwise it is impossible to run
simulation with -race flag enabled. In the essence it happens because we are managing global
object , which is server.Discv5, but unfortunately there is no way around it.
2018-04-13 11:34:30 +03:00
..
cache.go Peer pool to manage v5 peers (#736) 2018-04-10 09:44:09 +03:00
cache_test.go Peer pool to manage v5 peers (#736) 2018-04-10 09:44:09 +03:00
discv5.go Peerpool failover (#801) 2018-04-12 16:08:49 +03:00
peerpool.go Fix two race conditions in peerpool tests (#827) 2018-04-13 11:34:30 +03:00
peerpool_test.go Fix two race conditions in peerpool tests (#827) 2018-04-13 11:34:30 +03:00
topic_register.go Peer pool to manage v5 peers (#736) 2018-04-10 09:44:09 +03:00
topicpool.go Fix two race conditions in peerpool tests (#827) 2018-04-13 11:34:30 +03:00
topicpool_test.go Peerpool failover (#801) 2018-04-12 16:08:49 +03:00