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

Method adjustWindow

internal/transport/http2_server.go:722–727  ·  view source on GitHub ↗

adjustWindow sends out extra window update over the initial window size of stream if the application is requesting data larger in size than the window.

(s *ServerStream, n uint32)

Source from the content-addressed store, hash-verified

720// of stream if the application is requesting data larger in size than
721// the window.
722func (t *http2Server) adjustWindow(s *ServerStream, n uint32) {
723 if w := s.fc.maybeAdjust(n); w > 0 {
724 t.controlBuf.put(&outgoingWindowUpdate{streamID: s.id, increment: w})
725 }
726
727}
728
729// updateWindow adjusts the inbound quota for the stream and the transport.
730// Window updates will deliver to the controller for sending when

Callers

nothing calls this directly

Calls 2

maybeAdjustMethod · 0.80
putMethod · 0.45

Tested by

no test coverage detected