forked from quic-go/quic-go
remove stream.contributesToConnectionFlowControl
This commit is contained in:
@@ -46,8 +46,6 @@ type stream struct {
|
||||
doneWritingOrErrCond sync.Cond
|
||||
|
||||
flowControlManager flowcontrol.FlowControlManager
|
||||
// TODO: remove this
|
||||
contributesToConnectionFlowControl bool
|
||||
}
|
||||
|
||||
// newStream creates a new Stream
|
||||
@@ -56,16 +54,9 @@ func newStream(onData func(), connectionParameterManager *handshake.ConnectionPa
|
||||
onData: onData,
|
||||
streamID: StreamID,
|
||||
flowControlManager: flowControlManager,
|
||||
contributesToConnectionFlowControl: true,
|
||||
frameQueue: newStreamFrameSorter(),
|
||||
}
|
||||
|
||||
// crypto and header stream don't contribute to connection level flow control
|
||||
// TODO: only include the header stream here when using HTTP2
|
||||
if s.streamID == 1 || s.streamID == 3 {
|
||||
s.contributesToConnectionFlowControl = false
|
||||
}
|
||||
|
||||
s.newFrameOrErrCond.L = &s.mutex
|
||||
s.doneWritingOrErrCond.L = &s.mutex
|
||||
|
||||
|
||||
Reference in New Issue
Block a user