105 references to _maxData
InMemory.FunctionalTests (105)
Http2\Http2ConnectionTests.cs (81)
801await SendDataAsync(1, _maxData, endStream: true); 809withLength: _maxData.Length, 820Assert.True(_maxData.AsSpan().SequenceEqual(dataFrame.PayloadSequence.ToArray())); 844await SendDataAsync(1, _maxData, endStream: false); 857withLength: _maxData.Length, 864await SendDataAsync(1, _maxData, endStream: false); 872withLength: _maxData.Length, 881await SendDataAsync(1, _maxData, endStream: false); 884withLength: _maxData.Length, 891await SendDataAsync(1, _maxData, endStream: false); 899withLength: _maxData.Length, 917Assert.True(_maxData.AsSpan().SequenceEqual(frame.PayloadSequence.ToArray())); 919var updateSize = ((framesInStreamWindow / 2) + 1) * _maxData.Length; 921updateSize = ((framesInConnectionWindow / 2) + 1) * _maxData.Length; 940await SendDataAsync(1, _maxData, endStream: false); 947await SendDataAsync(1, new Memory<byte>(_maxData, 0, remainder), endStream: false); 1077await SendDataAsync(1, _maxData, endStream: false); 1090withLength: _maxData.Length, 1097await SendDataAsync(1, _maxData, endStream: false); 1105withLength: _maxData.Length, 1114await SendDataAsync(1, _maxData, endStream: false); 1117withLength: _maxData.Length, 1125await SendDataAsync(3, _maxData, endStream: true); 1138withLength: _maxData.Length, 1148await SendDataAsync(1, _maxData, endStream: true); 1151withLength: _maxData.Length, 1165Assert.True(_maxData.AsSpan().SequenceEqual(frame.PayloadSequence.ToArray())); 1167var updateSize = ((framesInStreamWindow / 2) + 1) * _maxData.Length; 1169updateSize = ((framesInConnectionWindow / 2) + 1) * _maxData.Length; 1281var maxDataMinusPadding = _maxData.AsMemory(0, _maxData.Length - padLength - 1); 1318await SendDataAsync(1, _maxData, endStream: false); 1326withLength: _maxData.Length, 1340Assert.True(_maxData.AsSpan().SequenceEqual(dataFrame3.PayloadSequence.ToArray())); 1342var updateSize = ((framesInWindow / 2) + 1) * _maxData.Length; 1357await SendDataAsync(1, _maxData, endStream: false); 1371await SendDataAsync(1, _maxData, endStream: true); 1381var updateSize = ((framesConnectionInWindow / 2) + 1) * _maxData.Length; 1404while (readResult.Buffer.Length != _maxData.Length * 4) 1413Assert.Equal(readResult.Buffer.Length, _maxData.Length * 5); 1428await SendDataAsync(1, _maxData, endStream: false); 1432await SendDataAsync(1, _maxData, endStream: false); 1448await SendDataAsync(1, _maxData, endStream: true); 1453withLength: _maxData.Length, 1475Assert.True(_maxData.AsSpan().SequenceEqual(frame.PayloadSequence.ToArray())); 1478var updateSize = ((framesInStreamWindow / 2) + 1) * _maxData.Length; 1480updateSize = ((framesInConnectionWindow / 2) + 1) * _maxData.Length; 1863await SendDataAsync(1, _maxData, endStream: false); 1886await SendDataAsync(1, _maxData, endStream: false); 1892await SendDataAsync(3, _maxData, endStream: false); 1895await SendDataAsync(3, _maxData, endStream: false); 1912var expectedFullFrameCountBeforeBackpressure = Http2PeerSettings.DefaultInitialWindowSize / _maxData.Length; 1913var remainingBytesBeforeBackpressure = (int)Http2PeerSettings.DefaultInitialWindowSize % _maxData.Length; 1914var remainingBytesAfterBackpressure = _maxData.Length - remainingBytesBeforeBackpressure; 1929await context.Response.Body.WriteAsync(_maxData, 0, _maxData.Length); 1953withLength: _maxData.Length, 3202var expectedFullFrameCountBeforeBackpressure = Http2PeerSettings.DefaultInitialWindowSize / _maxData.Length; 3203var remainingBytesBeforeBackpressure = (int)Http2PeerSettings.DefaultInitialWindowSize % _maxData.Length; 3233await context.Response.Body.WriteAsync(_maxData, 0, _maxData.Length); 3236await context.Response.Body.WriteAsync(_maxData, 0, remainingBytesBeforeBackpressure + 1); 3262withLength: _maxData.Length, 3295withLength: _maxData.Length, 3418await SendDataAsync(1, _maxData, endStream: false); 3422await SendDataAsync(1, _maxData, endStream: false); 3435var updateSize = ((framesInConnectionWindow / 2) + 1) * _maxData.Length; 4225var expectedFullFrameCountBeforeBackpressure = Http2PeerSettings.DefaultInitialWindowSize / _maxData.Length; 4226var remainingBytesBeforeBackpressure = (int)Http2PeerSettings.DefaultInitialWindowSize % _maxData.Length; 4256await context.Response.Body.WriteAsync(_maxData, 0, _maxData.Length); 4259await context.Response.Body.WriteAsync(_maxData, 0, remainingBytesBeforeBackpressure + 1); 4285withLength: _maxData.Length, 4583var expectedFullFrameCountBeforeBackpressure = Http2PeerSettings.DefaultInitialWindowSize / _maxData.Length; 4605await context.Response.Body.WriteAsync(_maxData, 0, _maxData.Length); 4609var lastWriteTask = context.Response.Body.WriteAsync(_maxData, 0, _maxData.Length); 4636withLength: _maxData.Length, 4641var remainingBytesBeforeBackpressure = (int)Http2PeerSettings.DefaultInitialWindowSize % _maxData.Length; 4642var 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;