Skip to content

Commit 62c4c00

Browse files
committed
Update debug msg for GOAWAY frame
1 parent fffc9b2 commit 62c4c00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/transport/http2_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,7 @@ func (t *http2Client) Close(err error) {
10061006
t.mu.Unlock()
10071007
// Per HTTP/2 spec, a GOAWAY frame must be sent before closing the
10081008
// connection. See https://httpwg.org/specs/rfc7540.html#GOAWAY.
1009-
t.controlBuf.put(&goAway{code: http2.ErrCodeNo, debugData: []byte(err.Error()), closeConn: err})
1009+
t.controlBuf.put(&goAway{code: http2.ErrCodeNo, debugData: []byte("client transport shutdown"), closeConn: err})
10101010
<-t.writerDone
10111011
t.cancel()
10121012
t.conn.Close()

0 commit comments

Comments
 (0)