105 references to _maxData
InMemory.FunctionalTests (105)
Http2\Http2ConnectionTests.cs (81)
809await SendDataAsync(1, _maxData, endStream: true); 817withLength: _maxData.Length, 828Assert.True(_maxData.AsSpan().SequenceEqual(dataFrame.PayloadSequence.ToArray())); 852await SendDataAsync(1, _maxData, endStream: false); 865withLength: _maxData.Length, 872await SendDataAsync(1, _maxData, endStream: false); 880withLength: _maxData.Length, 889await SendDataAsync(1, _maxData, endStream: false); 892withLength: _maxData.Length, 899await SendDataAsync(1, _maxData, endStream: false); 907withLength: _maxData.Length, 925Assert.True(_maxData.AsSpan().SequenceEqual(frame.PayloadSequence.ToArray())); 927var updateSize = ((framesInStreamWindow / 2) + 1) * _maxData.Length; 929updateSize = ((framesInConnectionWindow / 2) + 1) * _maxData.Length; 948await SendDataAsync(1, _maxData, endStream: false); 955await SendDataAsync(1, new Memory<byte>(_maxData, 0, remainder), endStream: false); 1085await SendDataAsync(1, _maxData, endStream: false); 1098withLength: _maxData.Length, 1105await SendDataAsync(1, _maxData, endStream: false); 1113withLength: _maxData.Length, 1122await SendDataAsync(1, _maxData, endStream: false); 1125withLength: _maxData.Length, 1133await SendDataAsync(3, _maxData, endStream: true); 1146withLength: _maxData.Length, 1156await SendDataAsync(1, _maxData, endStream: true); 1159withLength: _maxData.Length, 1173Assert.True(_maxData.AsSpan().SequenceEqual(frame.PayloadSequence.ToArray())); 1175var updateSize = ((framesInStreamWindow / 2) + 1) * _maxData.Length; 1177updateSize = ((framesInConnectionWindow / 2) + 1) * _maxData.Length; 1289var maxDataMinusPadding = _maxData.AsMemory(0, _maxData.Length - padLength - 1); 1326await SendDataAsync(1, _maxData, endStream: false); 1334withLength: _maxData.Length, 1348Assert.True(_maxData.AsSpan().SequenceEqual(dataFrame3.PayloadSequence.ToArray())); 1350var updateSize = ((framesInWindow / 2) + 1) * _maxData.Length; 1365await SendDataAsync(1, _maxData, endStream: false); 1379await SendDataAsync(1, _maxData, endStream: true); 1389var updateSize = ((framesConnectionInWindow / 2) + 1) * _maxData.Length; 1412while (readResult.Buffer.Length != _maxData.Length * 4) 1421Assert.Equal(readResult.Buffer.Length, _maxData.Length * 5); 1436await SendDataAsync(1, _maxData, endStream: false); 1440await SendDataAsync(1, _maxData, endStream: false); 1456await SendDataAsync(1, _maxData, endStream: true); 1461withLength: _maxData.Length, 1483Assert.True(_maxData.AsSpan().SequenceEqual(frame.PayloadSequence.ToArray())); 1486var updateSize = ((framesInStreamWindow / 2) + 1) * _maxData.Length; 1488updateSize = ((framesInConnectionWindow / 2) + 1) * _maxData.Length; 1871await SendDataAsync(1, _maxData, endStream: false); 1894await SendDataAsync(1, _maxData, endStream: false); 1900await SendDataAsync(3, _maxData, endStream: false); 1903await SendDataAsync(3, _maxData, endStream: false); 1920var expectedFullFrameCountBeforeBackpressure = Http2PeerSettings.DefaultInitialWindowSize / _maxData.Length; 1921var remainingBytesBeforeBackpressure = (int)Http2PeerSettings.DefaultInitialWindowSize % _maxData.Length; 1922var remainingBytesAfterBackpressure = _maxData.Length - remainingBytesBeforeBackpressure; 1937await context.Response.Body.WriteAsync(_maxData, 0, _maxData.Length); 1961withLength: _maxData.Length, 3210var expectedFullFrameCountBeforeBackpressure = Http2PeerSettings.DefaultInitialWindowSize / _maxData.Length; 3211var remainingBytesBeforeBackpressure = (int)Http2PeerSettings.DefaultInitialWindowSize % _maxData.Length; 3241await context.Response.Body.WriteAsync(_maxData, 0, _maxData.Length); 3244await context.Response.Body.WriteAsync(_maxData, 0, remainingBytesBeforeBackpressure + 1); 3270withLength: _maxData.Length, 3303withLength: _maxData.Length, 3426await SendDataAsync(1, _maxData, endStream: false); 3430await SendDataAsync(1, _maxData, endStream: false); 3443var updateSize = ((framesInConnectionWindow / 2) + 1) * _maxData.Length; 4236var expectedFullFrameCountBeforeBackpressure = Http2PeerSettings.DefaultInitialWindowSize / _maxData.Length; 4237var remainingBytesBeforeBackpressure = (int)Http2PeerSettings.DefaultInitialWindowSize % _maxData.Length; 4267await context.Response.Body.WriteAsync(_maxData, 0, _maxData.Length); 4270await context.Response.Body.WriteAsync(_maxData, 0, remainingBytesBeforeBackpressure + 1); 4296withLength: _maxData.Length, 4594var expectedFullFrameCountBeforeBackpressure = Http2PeerSettings.DefaultInitialWindowSize / _maxData.Length; 4616await context.Response.Body.WriteAsync(_maxData, 0, _maxData.Length); 4620var lastWriteTask = context.Response.Body.WriteAsync(_maxData, 0, _maxData.Length); 4647withLength: _maxData.Length, 4652var remainingBytesBeforeBackpressure = (int)Http2PeerSettings.DefaultInitialWindowSize % _maxData.Length; 4653var 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;