1 write to _connection
InMemory.FunctionalTests (1)
Http2\Http2TestBase.cs (1)
494
_connection
= new Http2Connection(httpConnectionContext);
82 references to _connection
InMemory.FunctionalTests (82)
Http2\Http2ConnectionTests.cs (61)
36
_connection
.ServerSettings.MaxConcurrentStreams = 2;
195
Assert.Equal(1,
_connection
.StreamPool.Count);
252
Assert.Equal(1,
_connection
.StreamPool.Count);
253
Assert.True(
_connection
.StreamPool.TryPeek(out var stream1));
270
Assert.Equal(1,
_connection
.StreamPool.Count);
271
Assert.True(
_connection
.StreamPool.TryPeek(out var stream2));
371
Assert.Equal(1,
_connection
.StreamPool.Count);
414
Assert.Equal(0,
_connection
.StreamPool.Count);
418
var stream =
_connection
._streams[1];
425
Assert.Equal(1,
_connection
.StreamPool.Count);
441
Assert.Equal(0,
_connection
.StreamPool.Count);
482
Assert.Equal(2,
_connection
.StreamPool.Count);
506
Assert.Equal(0,
_connection
.StreamPool.Count);
513
var stream =
_connection
._streams[1];
521
Assert.Equal(1,
_connection
.StreamPool.Count);
522
Assert.True(
_connection
.StreamPool.TryPeek(out var pooledStream));
538
Assert.Equal(0,
_connection
.StreamPool.Count);
546
Assert.Equal(1,
_connection
.StreamPool.Count);
547
Assert.True(
_connection
.StreamPool.TryPeek(out pooledStream));
578
var stream =
_connection
._streams[1];
591
Assert.Equal(0,
_connection
.StreamPool.Count);
611
_connection
.ServerSettings.MaxConcurrentStreams = 1;
623
Assert.Equal(0,
_connection
.StreamPool.Count);
636
_connection
.ServerSettings.MaxConcurrentStreams = 1;
653
Assert.Equal(0,
_connection
.StreamPool.Count);
667
Assert.Equal(0,
_connection
.StreamPool.Count);
680
Assert.Equal(1,
_connection
.StreamPool.Count);
682
_connection
.StreamPool.TryPeek(out var pooledStream);
687
Assert.Equal(1,
_connection
.StreamPool.Count);
692
Assert.Equal(0,
_connection
.StreamPool.Count);
1663
Assert.Equal((uint)100,
_connection
.MaxTrackedStreams);
1676
Assert.Equal((uint)200,
_connection
.MaxTrackedStreams);
1689
Assert.Equal((uint)int.MaxValue * 2,
_connection
.MaxTrackedStreams);
1701
Assert.Equal(100u,
_connection
.MaxTrackedStreams);
1702
_connection
.Abort(new ConnectionAbortedException(), ConnectionEndReason.AbortedByApp);
1727
_connection
.SendEnhanceYourCalmOnStartStream = true;
2028
_connection
.HandleReadDataRateTimeout();
2487
_connection
.ServerSettings.MaxConcurrentStreams = 1;
3616
_connectionTask =
_connection
.ProcessRequestsAsync(new DummyApplication(_noopApplication));
3668
_connection
.ServerSettings.HeaderTableSize = 0;
3669
_connection
.ServerSettings.MaxConcurrentStreams = 1;
3670
_connection
.ServerSettings.MaxHeaderListSize = 4 * 1024;
3671
_connection
.ServerSettings.InitialWindowSize = 1024 * 1024 * 10;
3673
_connectionTask =
_connection
.ProcessRequestsAsync(new DummyApplication(_noopApplication));
3876
_connection
.ServerSettings.MaxFrameSize = Http2PeerSettings.MaxAllowedMaxFrameSize;
3937
_connection
.ServerSettings.MaxFrameSize = Http2PeerSettings.MinAllowedMaxFrameSize + 1024;
4147
var lifetime =
_connection
.ConnectionFeatures.Get<IConnectionLifetimeNotificationFeature>();
5110
_connection
.OnInputOrOutputCompleted();
5125
_connection
.Abort(new ConnectionAbortedException(), ConnectionEndReason.AbortedByApp);
5200
_connection
.StopProcessingNextRequest(ConnectionEndReason.AppShutdownTimeout);
5233
_connection
.StopProcessingNextRequest(ConnectionEndReason.AppShutdownTimeout);
5284
_connection
.OnInputOrOutputCompleted();
5304
await
_connection
.ProcessRequestsAsync(new DummyApplication(_noopApplication)).DefaultTimeout();
5324
await
_connection
.ProcessRequestsAsync(new DummyApplication(_noopApplication)).DefaultTimeout();
5491
_connection
.ServerSettings.MaxConcurrentStreams = 0; // Refuse all streams
5493
var connectionTask =
_connection
.ProcessRequestsAsync(new DummyApplication(_noopApplication));
5573
_connection
.ServerSettings.MaxConcurrentStreams = 1;
5575
var connectionTask =
_connection
.ProcessRequestsAsync(new DummyApplication(_ => requestBlock.Task));
5646
_connection
.ServerSettings.MaxConcurrentStreams = 1;
5857
await SendAsync(Encoding.ASCII.GetBytes($"GET /{new string('a',
_connection
.Limits.MaxRequestLineSize)} HTTP/1.1\r\n"));
5874
_connection
.ConnectionFeatures.Set<ITlsHandshakeFeature>(tlsHandshakeMock.Object);
Http2\Http2KeepAliveTests.cs (5)
18
Assert.Null(
_connection
._keepAlive);
48
Assert.Equal(KeepAliveState.PingSent,
_connection
._keepAlive._state);
202
Assert.Equal(KeepAliveState.Timeout,
_connection
._keepAlive._state);
223
Assert.Equal(KeepAliveState.PingSent,
_connection
._keepAlive._state);
230
Assert.Equal(KeepAliveState.None,
_connection
._keepAlive._state);
Http2\Http2TestBase.cs (7)
495
_connection
._streamLifetimeHandler = new LifetimeHandlerInterceptor(
_connection
._streamLifetimeHandler, this);
498
httpConnection.Initialize(
_connection
);
546
if (
_connection
== null)
555
var connectionTask =
_connection
.ProcessRequestsAsync(new DummyApplication(application));
608
_ => throw new NotImplementedException($"{nameof(
_connection
.ProcessRequestsAsync)} should invoked instead - hence transport connection manager does not have the connection registered."),
1389
((IRequestProcessor)
_connection
)?.Tick(timestamp);
Http2\Http2TimeoutTests.cs (1)
23
_connectionTask =
_connection
.ProcessRequestsAsync(new DummyApplication(_noopApplication));
Http2\Http2WebSocketTests.cs (8)
182
var originalHandler =
_connection
._streamLifetimeHandler;
193
_connection
._streamLifetimeHandler = streamLifetimeHandler.Object;
249
Assert.Equal(1,
_connection
.StreamPool.Count);
250
Assert.True(
_connection
.StreamPool.TryPeek(out var pooledStream));
621
var originalHandler =
_connection
._streamLifetimeHandler;
635
_connection
._streamLifetimeHandler = streamLifetimeHandler.Object;
686
Assert.Equal(1,
_connection
.StreamPool.Count);
687
Assert.True(
_connection
.StreamPool.TryPeek(out var pooledStream));