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

Method handleRSTStream

internal/transport/http2_server.go:828–841  ·  view source on GitHub ↗
(f *http2.RSTStreamFrame)

Source from the content-addressed store, hash-verified

826}
827
828func (t *http2Server) handleRSTStream(f *http2.RSTStreamFrame) {
829 // If the stream is not deleted from the transport's active streams map, then do a regular close stream.
830 if s, ok := t.getStream(f); ok {
831 t.closeStream(s, false, 0, false)
832 return
833 }
834 // If the stream is already deleted from the active streams map, then put a cleanupStream item into controlbuf to delete the stream from loopy writer's established streams map.
835 t.controlBuf.put(&cleanupStream{
836 streamID: f.Header().StreamID,
837 rst: false,
838 rstCode: 0,
839 onWrite: func() {},
840 })
841}
842
843func (t *http2Server) handleSettings(f *http2.SettingsFrame) {
844 if f.IsAck() {

Callers 1

HandleStreamsMethod · 0.95

Calls 4

getStreamMethod · 0.95
closeStreamMethod · 0.95
HeaderMethod · 0.65
putMethod · 0.45

Tested by

no test coverage detected