MCPcopy
hub / github.com/grpc/grpc-go / streamContextErr

Method streamContextErr

internal/transport/http2_server.go:1001–1008  ·  view source on GitHub ↗
(s *ServerStream)

Source from the content-addressed store, hash-verified

999}
1000
1001func (t *http2Server) streamContextErr(s *ServerStream) error {
1002 select {
1003 case <-t.done:
1004 return ErrConnClosing
1005 default:
1006 }
1007 return ContextErr(s.ctx.Err())
1008}
1009
1010// WriteHeader sends the header metadata md back to the client.
1011func (t *http2Server) writeHeader(s *ServerStream, md metadata.MD) error {

Callers 2

writeHeaderMethod · 0.95
writeMethod · 0.95

Calls 2

ContextErrFunction · 0.85
ErrMethod · 0.80

Tested by

no test coverage detected