updated peerstream: fixed hanging bug
peerstream would hang when it got many temporary errors. temp errors should not count as an error. Now, it will only exit when an error is not temporary. I kept the acceptErr channel because it will no longer cause a bad hang. The goroutine is exiting, so if it blocks until acceptErr is read, it's fine. If users launch tons of listers and see goroutines building up, they know they should be reading + logging those.
Showing
Please register or sign in to comment