Skip to content

Commit 79da4fb

Browse files
Waiting for the reader GO routine to end in conn.close()
1 parent 04e78b0 commit 79da4fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/transport/http2_client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,6 +1023,7 @@ func (t *http2Client) Close(err error) {
10231023
case <-timer.C:
10241024
t.logger.Infof("Failed to write a GOAWAY frame as part of connection close after %s. Giving up and closing the transport.", goAwayLoopyWriterTimeout)
10251025
}
1026+
<-t.readerDone
10261027
t.cancel()
10271028
t.conn.Close()
10281029
channelz.RemoveEntry(t.channelz.ID)

0 commit comments

Comments
 (0)