mirror of https://github.com/hashicorp/consul
Browse Source
* In connection pool, there is no guarantee that .reap() cannot execute the same time as .Shutdown() is called. It also did not benefit to eval shutdown when a select is run on the shutdown channel. * In server, same principle applies to handleConsulConn. Since we also have a shutdown channel, it makes more to use this than to loop on a bool variable.pull/499/head
Ali Abbas
10 years ago
2 changed files with 15 additions and 8 deletions
Loading…
Reference in new issue