This commit is contained in:
iamqizhao 2016-07-28 18:57:53 -07:00
Родитель d4acbe9e3c
Коммит 5876dcba5e
2 изменённых файлов: 1 добавлений и 7 удалений

Просмотреть файл

@ -566,12 +566,6 @@ func TestServerGoAway(t *testing.T) {
func testServerGoAway(t *testing.T, e env) {
te := newTest(t, e)
te.userAgent = testAppUA
te.declareLogNoise(
"transport: http2Client.notifyError got notified that the client transport was broken EOF",
"grpc: Conn.transportMonitor exits due to: grpc: the client connection is closing",
"grpc: Conn.resetTransport failed to create client transport: connection error",
"grpc: Conn.resetTransport failed to create client transport: connection error: desc = \"transport: dial unix",
)
te.startServer(&testServer{security: e.security})
defer te.tearDown()

Просмотреть файл

@ -496,7 +496,7 @@ func (t *http2Client) Close() (err error) {
func (t *http2Client) GracefulClose() error {
t.mu.Lock()
if t.state == closing {
if t.state == closing || t.state == unreachable {
t.mu.Unlock()
return nil
}