commit | 30d52a20ad5f67b5f703f0edfae1250e6c5e3ade | [log] [tgz] |
---|---|---|
author | Brad Fitzpatrick <brad@danga.com> | Thu Sep 17 19:52:17 2015 +0000 |
committer | Brad Fitzpatrick <bradfitz@golang.org> | Thu Sep 17 20:03:31 2015 +0000 |
tree | 67e3ce310fd15535145a4d22ddb6663f06902a98 | |
parent | 5299bb075dbc72031ac69b0fb74097e6ce7322af [diff] |
revdial: fix Lock-after-Lock bug, where server EOF wouldn't unblock conns If the server's conn stopped reading, we acquired a Lock twice (blocking forever) and never killing all the active connections on it. Add test. Probably fixes golang/go#12666 Change-Id: I4ff670a55e8d92e6e2ebe14a94137d6f15f3768e Reviewed-on: https://go-review.googlesource.com/14700 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>