a minor fix
This commit is contained in:
Родитель
d4acbe9e3c
Коммит
5876dcba5e
|
@ -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
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче