105 references to _maxData
InMemory.FunctionalTests (105)
Http2\Http2ConnectionTests.cs (81)
810await SendDataAsync(1, _maxData, endStream: true); 818withLength: _maxData.Length, 829Assert.True(_maxData.AsSpan().SequenceEqual(dataFrame.PayloadSequence.ToArray())); 853await SendDataAsync(1, _maxData, endStream: false); 866withLength: _maxData.Length, 873await SendDataAsync(1, _maxData, endStream: false); 881withLength: _maxData.Length, 890await SendDataAsync(1, _maxData, endStream: false); 893withLength: _maxData.Length, 900await SendDataAsync(1, _maxData, endStream: false); 908withLength: _maxData.Length, 926Assert.True(_maxData.AsSpan().SequenceEqual(frame.PayloadSequence.ToArray())); 928var updateSize = ((framesInStreamWindow / 2) + 1) * _maxData.Length; 930updateSize = ((framesInConnectionWindow / 2) + 1) * _maxData.Length; 949await SendDataAsync(1, _maxData, endStream: false); 956await SendDataAsync(1, new Memory<byte>(_maxData, 0, remainder), endStream: false); 1086await SendDataAsync(1, _maxData, endStream: false); 1099withLength: _maxData.Length, 1106await SendDataAsync(1, _maxData, endStream: false); 1114withLength: _maxData.Length, 1123await SendDataAsync(1, _maxData, endStream: false); 1126withLength: _maxData.Length, 1134await SendDataAsync(3, _maxData, endStream: true); 1147withLength: _maxData.Length, 1157await SendDataAsync(1, _maxData, endStream: true); 1160withLength: _maxData.Length, 1174Assert.True(_maxData.AsSpan().SequenceEqual(frame.PayloadSequence.ToArray())); 1176var updateSize = ((framesInStreamWindow / 2) + 1) * _maxData.Length; 1178updateSize = ((framesInConnectionWindow / 2) + 1) * _maxData.Length; 1290var maxDataMinusPadding = _maxData.AsMemory(0, _maxData.Length - padLength - 1); 1327await SendDataAsync(1, _maxData, endStream: false); 1335withLength: _maxData.Length, 1349Assert.True(_maxData.AsSpan().SequenceEqual(dataFrame3.PayloadSequence.ToArray())); 1351var updateSize = ((framesInWindow / 2) + 1) * _maxData.Length; 1366await SendDataAsync(1, _maxData, endStream: false); 1380await SendDataAsync(1, _maxData, endStream: true); 1390var updateSize = ((framesConnectionInWindow / 2) + 1) * _maxData.Length; 1413while (readResult.Buffer.Length != _maxData.Length * 4) 1422Assert.Equal(readResult.Buffer.Length, _maxData.Length * 5); 1437await SendDataAsync(1, _maxData, endStream: false); 1441await SendDataAsync(1, _maxData, endStream: false); 1457await SendDataAsync(1, _maxData, endStream: true); 1462withLength: _maxData.Length, 1484Assert.True(_maxData.AsSpan().SequenceEqual(frame.PayloadSequence.ToArray())); 1487var updateSize = ((framesInStreamWindow / 2) + 1) * _maxData.Length; 1489updateSize = ((framesInConnectionWindow / 2) + 1) * _maxData.Length; 1872await SendDataAsync(1, _maxData, endStream: false); 1895await SendDataAsync(1, _maxData, endStream: false); 1901await SendDataAsync(3, _maxData, endStream: false); 1904await SendDataAsync(3, _maxData, endStream: false); 1921var expectedFullFrameCountBeforeBackpressure = Http2PeerSettings.DefaultInitialWindowSize / _maxData.Length; 1922var remainingBytesBeforeBackpressure = (int)Http2PeerSettings.DefaultInitialWindowSize % _maxData.Length; 1923var remainingBytesAfterBackpressure = _maxData.Length - remainingBytesBeforeBackpressure; 1938await context.Response.Body.WriteAsync(_maxData, 0, _maxData.Length); 1962withLength: _maxData.Length, 3333var expectedFullFrameCountBeforeBackpressure = Http2PeerSettings.DefaultInitialWindowSize / _maxData.Length; 3334var remainingBytesBeforeBackpressure = (int)Http2PeerSettings.DefaultInitialWindowSize % _maxData.Length; 3364await context.Response.Body.WriteAsync(_maxData, 0, _maxData.Length); 3367await context.Response.Body.WriteAsync(_maxData, 0, remainingBytesBeforeBackpressure + 1); 3393withLength: _maxData.Length, 3426withLength: _maxData.Length, 3549await SendDataAsync(1, _maxData, endStream: false); 3553await SendDataAsync(1, _maxData, endStream: false); 3566var updateSize = ((framesInConnectionWindow / 2) + 1) * _maxData.Length; 4367var expectedFullFrameCountBeforeBackpressure = Http2PeerSettings.DefaultInitialWindowSize / _maxData.Length; 4368var remainingBytesBeforeBackpressure = (int)Http2PeerSettings.DefaultInitialWindowSize % _maxData.Length; 4398await context.Response.Body.WriteAsync(_maxData, 0, _maxData.Length); 4401await context.Response.Body.WriteAsync(_maxData, 0, remainingBytesBeforeBackpressure + 1); 4427withLength: _maxData.Length, 4725var expectedFullFrameCountBeforeBackpressure = Http2PeerSettings.DefaultInitialWindowSize / _maxData.Length; 4747await context.Response.Body.WriteAsync(_maxData, 0, _maxData.Length); 4751var lastWriteTask = context.Response.Body.WriteAsync(_maxData, 0, _maxData.Length); 4778withLength: _maxData.Length, 4783var remainingBytesBeforeBackpressure = (int)Http2PeerSettings.DefaultInitialWindowSize % _maxData.Length; 4784var remainingBytesAfterBackpressure = _maxData.Length - remainingBytesBeforeBackpressure;
Http2\Http2TimeoutTests.cs (24)
415await SendDataAsync(1, _maxData, endStream: true); 427var timeToWriteMaxData = TimeSpan.FromSeconds((_bytesReceived + _maxData.Length) / limits.MinResponseDataRate.BytesPerSecond) + 441withLength: _maxData.Length, 516_clientSettings.InitialWindowSize = (uint)_maxData.Length - 1; 521await SendDataAsync(1, _maxData, endStream: true); 570_clientSettings.InitialWindowSize = (uint)_maxData.Length - 1; 575await SendDataAsync(1, _maxData, endStream: true); 587await SendDataAsync(3, _maxData, endStream: true); 685await StartStreamAsync(1, ReadRateRequestHeaders(_maxData.Length), endStream: false); 686await SendDataAsync(1, _maxData, endStream: false); 700var timeToReadMaxData = TimeSpan.FromSeconds(_maxData.Length / limits.MinRequestBodyDataRate.BytesPerSecond) - TimeSpan.FromSeconds(.5); 736await StartStreamAsync(1, ReadRateRequestHeaders(_maxData.Length), endStream: false); 737await SendDataAsync(1, _maxData, endStream: false); 749await StartStreamAsync(3, ReadRateRequestHeaders(_maxData.Length), endStream: false); 750await SendDataAsync(3, _maxData, endStream: false); 761var timeToReadMaxData = TimeSpan.FromSeconds(_maxData.Length / limits.MinRequestBodyDataRate.BytesPerSecond); 803await StartStreamAsync(1, ReadRateRequestHeaders(_maxData.Length), endStream: false); 804await SendDataAsync(1, _maxData, endStream: true); 821await StartStreamAsync(3, ReadRateRequestHeaders(_maxData.Length), endStream: false); 822await SendDataAsync(3, _maxData, endStream: false); 835var timeToReadMaxData = TimeSpan.FromSeconds(_maxData.Length / limits.MinRequestBodyDataRate.BytesPerSecond) - TimeSpan.FromSeconds(.5); 942await SendDataAsync(1, _maxData, endStream: false); 944await SendDataAsync(1, _maxData, endStream: true); 976var expectedUpdateSize = ((framesConnectionInWindow / 2) + 1) * _maxData.Length + _helloWorldBytes.Length;