Skip to content

Commit

Permalink
internal/transport: fix error wrapping for errors in server preface
Browse files Browse the repository at this point in the history
  • Loading branch information
olegbespalov committed Sep 15, 2023
1 parent 1d975c9 commit b5d0ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/transport/http2_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1563,7 +1563,7 @@ func (t *http2Client) operateHeaders(frame *http2.MetaHeadersFrame) {
func (t *http2Client) readServerPreface() error {
frame, err := t.framer.fr.ReadFrame()
if err != nil {
return connectionErrorf(true, err, "error reading server preface: %v", err)
return connectionErrorf(isTemporary(err), err, "error reading server preface: %v", err)
}
sf, ok := frame.(*http2.SettingsFrame)
if !ok {
Expand Down

0 comments on commit b5d0ef0

Please sign in to comment.