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; 4368var expectedFullFrameCountBeforeBackpressure = Http2PeerSettings.DefaultInitialWindowSize / _maxData.Length; 4369var remainingBytesBeforeBackpressure = (int)Http2PeerSettings.DefaultInitialWindowSize % _maxData.Length; 4399await context.Response.Body.WriteAsync(_maxData, 0, _maxData.Length); 4402await context.Response.Body.WriteAsync(_maxData, 0, remainingBytesBeforeBackpressure + 1); 4428withLength: _maxData.Length, 4726var expectedFullFrameCountBeforeBackpressure = Http2PeerSettings.DefaultInitialWindowSize / _maxData.Length; 4748await context.Response.Body.WriteAsync(_maxData, 0, _maxData.Length); 4752var lastWriteTask = context.Response.Body.WriteAsync(_maxData, 0, _maxData.Length); 4779withLength: _maxData.Length, 4784var remainingBytesBeforeBackpressure = (int)Http2PeerSettings.DefaultInitialWindowSize % _maxData.Length; 4785var remainingBytesAfterBackpressure = _maxData.Length - remainingBytesBeforeBackpressure;
Http2\Http2TimeoutTests.cs (24)
416await SendDataAsync(1, _maxData, endStream: true); 428var timeToWriteMaxData = TimeSpan.FromSeconds((_bytesReceived + _maxData.Length) / limits.MinResponseDataRate.BytesPerSecond) + 442withLength: _maxData.Length, 517_clientSettings.InitialWindowSize = (uint)_maxData.Length - 1; 522await SendDataAsync(1, _maxData, endStream: true); 571_clientSettings.InitialWindowSize = (uint)_maxData.Length - 1; 576await SendDataAsync(1, _maxData, endStream: true); 588await SendDataAsync(3, _maxData, endStream: true); 686await StartStreamAsync(1, ReadRateRequestHeaders(_maxData.Length), endStream: false); 687await SendDataAsync(1, _maxData, endStream: false); 701var timeToReadMaxData = TimeSpan.FromSeconds(_maxData.Length / limits.MinRequestBodyDataRate.BytesPerSecond) - TimeSpan.FromSeconds(.5); 737await StartStreamAsync(1, ReadRateRequestHeaders(_maxData.Length), endStream: false); 738await SendDataAsync(1, _maxData, endStream: false); 750await StartStreamAsync(3, ReadRateRequestHeaders(_maxData.Length), endStream: false); 751await SendDataAsync(3, _maxData, endStream: false); 762var timeToReadMaxData = TimeSpan.FromSeconds(_maxData.Length / limits.MinRequestBodyDataRate.BytesPerSecond); 804await StartStreamAsync(1, ReadRateRequestHeaders(_maxData.Length), endStream: false); 805await SendDataAsync(1, _maxData, endStream: true); 822await StartStreamAsync(3, ReadRateRequestHeaders(_maxData.Length), endStream: false); 823await SendDataAsync(3, _maxData, endStream: false); 836var timeToReadMaxData = TimeSpan.FromSeconds(_maxData.Length / limits.MinRequestBodyDataRate.BytesPerSecond) - TimeSpan.FromSeconds(.5); 943await SendDataAsync(1, _maxData, endStream: false); 945await SendDataAsync(1, _maxData, endStream: true); 977var expectedUpdateSize = ((framesConnectionInWindow / 2) + 1) * _maxData.Length + _helloWorldBytes.Length;