bsc/event
Boqin Qin be6078ad83
all: fix a bunch of inconsequential goroutine leaks (#20667)
The leaks were mostly in unit tests, and could all be resolved by
adding suitably-sized channel buffers or by restructuring the test
to not send on a channel after an error has occurred.

There is an unavoidable goroutine leak in Console.Interactive: when
we receive a signal, the line reader cannot be unblocked and will get
stuck. This leak is now documented and I've tried to make it slightly 
less bad by adding a one-element buffer to the output channels of
the line-reading loop. Should the reader eventually awake from its
blocked state (i.e. when stdin is closed), at least it won't get stuck
trying to send to the interpreter loop which has quit long ago.

Co-authored-by: Felix Lange <fjl@twurst.com>
2020-04-03 20:07:22 +02:00
..
event_test.go all: fix a bunch of inconsequential goroutine leaks (#20667) 2020-04-03 20:07:22 +02:00
event.go eth/filter: check nil pointer when unsubscribe (#16682) 2018-05-09 11:29:25 +03:00
example_feed_test.go all: update license information 2017-04-14 10:29:00 +02:00
example_scope_test.go all: update license information 2017-04-14 10:29:00 +02:00
example_subscription_test.go all: update license information 2017-04-14 10:29:00 +02:00
example_test.go core, eth, event, miner, xeth: fix event post / subscription race 2015-10-12 16:22:03 +03:00
feed_test.go event: add missing timer.Stop call in TestFeed (#20868) 2020-04-02 15:56:25 +02:00
feed.go event: add missing unlock before panic (#20653) 2020-02-12 10:33:31 +01:00
subscription_test.go event, p2p/simulations/adapters: fix rare goroutine leaks (#20657) 2020-02-12 15:19:47 +01:00
subscription.go event, p2p/simulations/adapters: fix rare goroutine leaks (#20657) 2020-02-12 15:19:47 +01:00