|
|
@@ -1462,7 +1462,7 @@ func (b transportResponseBody) Read(p []byte) (n int, err error) {
|
|
|
// Consider any buffered body data (read from the conn but not
|
|
|
// consumed by the client) when computing flow control for this
|
|
|
// stream.
|
|
|
- v := int(cs.inflow.available()) + cs.bufPipe.b.Len()
|
|
|
+ v := int(cs.inflow.available()) + cs.bufPipe.Len()
|
|
|
if v < transportDefaultStreamFlow-transportDefaultStreamMinRefresh {
|
|
|
streamAdd = int32(transportDefaultStreamFlow - v)
|
|
|
cs.inflow.add(streamAdd)
|