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)
1150
if (
_responseDataPayloadRemaining
<= 0 && !ReadNextDataFrameAsync(response, CancellationToken.None).AsTask().GetAwaiter().GetResult())
1162
int copyLen = (int)Math.Min(buffer.Length, Math.Min(
_responseDataPayloadRemaining
, _recvBuffer.ActiveLength));
1173
if (
_responseDataPayloadRemaining
== 0 && _recvBuffer.ActiveLength == 0)
1182
int copyLen = (int)Math.Min(buffer.Length,
_responseDataPayloadRemaining
);
1187
throw new HttpIOException(HttpRequestError.ResponseEnded, SR.Format(SR.net_http_invalid_response_premature_eof_bytecount,
_responseDataPayloadRemaining
));
1222
if (
_responseDataPayloadRemaining
<= 0 && !await ReadNextDataFrameAsync(response, cancellationToken).ConfigureAwait(false))
1234
int copyLen = (int)Math.Min(buffer.Length, Math.Min(
_responseDataPayloadRemaining
, _recvBuffer.ActiveLength));
1245
if (
_responseDataPayloadRemaining
== 0 && _recvBuffer.ActiveLength == 0)
1254
int copyLen = (int)Math.Min(buffer.Length,
_responseDataPayloadRemaining
);
1259
throw new HttpIOException(HttpRequestError.ResponseEnded, SR.Format(SR.net_http_invalid_response_premature_eof_bytecount,
_responseDataPayloadRemaining
));
1332
if (
_responseDataPayloadRemaining
== -1)
1387
if (
_responseDataPayloadRemaining
!= -1) // -1 is used for EOF, 0 for consumed DATA frame payload before the next read