105 references to _maxData
InMemory.FunctionalTests (105)
Http2\Http2ConnectionTests.cs (81)
785await SendDataAsync(1, _maxData, endStream: true); 793withLength: _maxData.Length, 804Assert.True(_maxData.AsSpan().SequenceEqual(dataFrame.PayloadSequence.ToArray())); 828await SendDataAsync(1, _maxData, endStream: false); 841withLength: _maxData.Length, 848await SendDataAsync(1, _maxData, endStream: false); 856withLength: _maxData.Length, 865await SendDataAsync(1, _maxData, endStream: false); 868withLength: _maxData.Length, 875await SendDataAsync(1, _maxData, endStream: false); 883withLength: _maxData.Length, 901Assert.True(_maxData.AsSpan().SequenceEqual(frame.PayloadSequence.ToArray())); 903var updateSize = ((framesInStreamWindow / 2) + 1) * _maxData.Length; 905updateSize = ((framesInConnectionWindow / 2) + 1) * _maxData.Length; 924await SendDataAsync(1, _maxData, endStream: false); 931await SendDataAsync(1, new Memory<byte>(_maxData, 0, remainder), endStream: false); 1061await SendDataAsync(1, _maxData, endStream: false); 1074withLength: _maxData.Length, 1081await SendDataAsync(1, _maxData, endStream: false); 1089withLength: _maxData.Length, 1098await SendDataAsync(1, _maxData, endStream: false); 1101withLength: _maxData.Length, 1109await SendDataAsync(3, _maxData, endStream: true); 1122withLength: _maxData.Length, 1132await SendDataAsync(1, _maxData, endStream: true); 1135withLength: _maxData.Length, 1149Assert.True(_maxData.AsSpan().SequenceEqual(frame.PayloadSequence.ToArray())); 1151var updateSize = ((framesInStreamWindow / 2) + 1) * _maxData.Length; 1153updateSize = ((framesInConnectionWindow / 2) + 1) * _maxData.Length; 1265var maxDataMinusPadding = _maxData.AsMemory(0, _maxData.Length - padLength - 1); 1302await SendDataAsync(1, _maxData, endStream: false); 1310withLength: _maxData.Length, 1324Assert.True(_maxData.AsSpan().SequenceEqual(dataFrame3.PayloadSequence.ToArray())); 1326var updateSize = ((framesInWindow / 2) + 1) * _maxData.Length; 1341await SendDataAsync(1, _maxData, endStream: false); 1355await SendDataAsync(1, _maxData, endStream: true); 1365var updateSize = ((framesConnectionInWindow / 2) + 1) * _maxData.Length; 1388while (readResult.Buffer.Length != _maxData.Length * 4) 1397Assert.Equal(readResult.Buffer.Length, _maxData.Length * 5); 1412await SendDataAsync(1, _maxData, endStream: false); 1416await SendDataAsync(1, _maxData, endStream: false); 1432await SendDataAsync(1, _maxData, endStream: true); 1437withLength: _maxData.Length, 1459Assert.True(_maxData.AsSpan().SequenceEqual(frame.PayloadSequence.ToArray())); 1462var updateSize = ((framesInStreamWindow / 2) + 1) * _maxData.Length; 1464updateSize = ((framesInConnectionWindow / 2) + 1) * _maxData.Length; 1847await SendDataAsync(1, _maxData, endStream: false); 1870await SendDataAsync(1, _maxData, endStream: false); 1876await SendDataAsync(3, _maxData, endStream: false); 1879await SendDataAsync(3, _maxData, endStream: false); 1896var expectedFullFrameCountBeforeBackpressure = Http2PeerSettings.DefaultInitialWindowSize / _maxData.Length; 1897var remainingBytesBeforeBackpressure = (int)Http2PeerSettings.DefaultInitialWindowSize % _maxData.Length; 1898var remainingBytesAfterBackpressure = _maxData.Length - remainingBytesBeforeBackpressure; 1913await context.Response.Body.WriteAsync(_maxData, 0, _maxData.Length); 1937withLength: _maxData.Length, 3186var expectedFullFrameCountBeforeBackpressure = Http2PeerSettings.DefaultInitialWindowSize / _maxData.Length; 3187var remainingBytesBeforeBackpressure = (int)Http2PeerSettings.DefaultInitialWindowSize % _maxData.Length; 3217await context.Response.Body.WriteAsync(_maxData, 0, _maxData.Length); 3220await context.Response.Body.WriteAsync(_maxData, 0, remainingBytesBeforeBackpressure + 1); 3246withLength: _maxData.Length, 3279withLength: _maxData.Length, 3402await SendDataAsync(1, _maxData, endStream: false); 3406await SendDataAsync(1, _maxData, endStream: false); 3419var updateSize = ((framesInConnectionWindow / 2) + 1) * _maxData.Length; 4209var expectedFullFrameCountBeforeBackpressure = Http2PeerSettings.DefaultInitialWindowSize / _maxData.Length; 4210var remainingBytesBeforeBackpressure = (int)Http2PeerSettings.DefaultInitialWindowSize % _maxData.Length; 4240await context.Response.Body.WriteAsync(_maxData, 0, _maxData.Length); 4243await context.Response.Body.WriteAsync(_maxData, 0, remainingBytesBeforeBackpressure + 1); 4269withLength: _maxData.Length, 4567var expectedFullFrameCountBeforeBackpressure = Http2PeerSettings.DefaultInitialWindowSize / _maxData.Length; 4589await context.Response.Body.WriteAsync(_maxData, 0, _maxData.Length); 4593var lastWriteTask = context.Response.Body.WriteAsync(_maxData, 0, _maxData.Length); 4620withLength: _maxData.Length, 4625var remainingBytesBeforeBackpressure = (int)Http2PeerSettings.DefaultInitialWindowSize % _maxData.Length; 4626var 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;