7 writes to _responseDataPayloadRemaining
System.Net.Http (7)
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (7)
568_responseDataPayloadRemaining = -1; // Set to -1 to indicate EOS. 1166_responseDataPayloadRemaining -= copyLen; 1191_responseDataPayloadRemaining -= bytesRead; 1238_responseDataPayloadRemaining -= copyLen; 1263_responseDataPayloadRemaining -= bytesRead; 1353_responseDataPayloadRemaining = payloadLength; 1370_responseDataPayloadRemaining = -1; // Set to -1 to indicate EOS.
12 references to _responseDataPayloadRemaining
System.Net.Http (12)
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (12)
1150if (_responseDataPayloadRemaining <= 0 && !ReadNextDataFrameAsync(response, CancellationToken.None).AsTask().GetAwaiter().GetResult()) 1162int copyLen = (int)Math.Min(buffer.Length, Math.Min(_responseDataPayloadRemaining, _recvBuffer.ActiveLength)); 1173if (_responseDataPayloadRemaining == 0 && _recvBuffer.ActiveLength == 0) 1182int copyLen = (int)Math.Min(buffer.Length, _responseDataPayloadRemaining); 1187throw new HttpIOException(HttpRequestError.ResponseEnded, SR.Format(SR.net_http_invalid_response_premature_eof_bytecount, _responseDataPayloadRemaining)); 1222if (_responseDataPayloadRemaining <= 0 && !await ReadNextDataFrameAsync(response, cancellationToken).ConfigureAwait(false)) 1234int copyLen = (int)Math.Min(buffer.Length, Math.Min(_responseDataPayloadRemaining, _recvBuffer.ActiveLength)); 1245if (_responseDataPayloadRemaining == 0 && _recvBuffer.ActiveLength == 0) 1254int copyLen = (int)Math.Min(buffer.Length, _responseDataPayloadRemaining); 1259throw new HttpIOException(HttpRequestError.ResponseEnded, SR.Format(SR.net_http_invalid_response_premature_eof_bytecount, _responseDataPayloadRemaining)); 1332if (_responseDataPayloadRemaining == -1) 1387if (_responseDataPayloadRemaining != -1) // -1 is used for EOF, 0 for consumed DATA frame payload before the next read