Log the actual error when inTapHandle fails in http2Server (#1185)

This commit is contained in:
Cesar Ghali
2017-05-05 13:40:31 -07:00
committed by MakMukhi
parent 66a9140c20
commit 2eb11e102d

View File

@ -288,7 +288,7 @@ func (t *http2Server) operateHeaders(frame *http2.MetaHeadersFrame, handle func(
} }
s.ctx, err = t.inTapHandle(s.ctx, info) s.ctx, err = t.inTapHandle(s.ctx, info)
if err != nil { if err != nil {
// TODO: Log the real error. grpclog.Printf("transport: http2Server.operateHeaders got an error from InTapHandle: %v", err)
t.controlBuf.put(&resetStream{s.id, http2.ErrCodeRefusedStream}) t.controlBuf.put(&resetStream{s.id, http2.ErrCodeRefusedStream})
return return
} }