Files
kubernetes/pkg
k8s-merge-robot 8a81000b71 Merge pull request #25331 from hongchaodeng/w
Automatic merge from submit-queue

etcd3/watcher: fix goroutine leak if ctx is canceled

### Problem
In reflector.go, it could probably call Stop() without retrieving all results
from ResultChan(). See [here](https://github.com/kubernetes/kubernetes/blob/master/pkg/client/cache/reflector.go#L369). A potential leak is that when an error has happened, it could block on resultChan,
and then cancelling context in Stop() wouldn't unblock it.

### What's this PR?
This fixes the problem by making it also select ctx.Done and cancel context afterwards if error happened.
2016-05-09 12:12:15 -07:00
..
2016-04-26 15:08:34 -04:00
2016-05-08 20:30:37 -07:00
2016-04-29 17:12:10 -04:00
2016-03-17 09:30:02 +01:00
2016-05-06 17:24:53 -07:00
2016-04-29 17:12:10 -04:00
2016-05-03 01:36:32 +00:00
2016-04-14 17:05:46 -07:00
2016-02-24 11:22:02 -05:00
2016-05-08 20:30:37 -07:00
2016-03-02 20:46:32 -05:00