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);
416
Assert.Equal(0,
_connection
.StreamPool.Count);
422
var stream =
_connection
._streams[1];
429
Assert.Equal(1,
_connection
.StreamPool.Count);
445
Assert.Equal(0,
_connection
.StreamPool.Count);
486
Assert.Equal(2,
_connection
.StreamPool.Count);
513
Assert.Equal(0,
_connection
.StreamPool.Count);
523
var stream =
_connection
._streams[1];
531
Assert.Equal(1,
_connection
.StreamPool.Count);
532
Assert.True(
_connection
.StreamPool.TryPeek(out var pooledStream));
550
Assert.Equal(0,
_connection
.StreamPool.Count);
558
Assert.Equal(1,
_connection
.StreamPool.Count);
559
Assert.True(
_connection
.StreamPool.TryPeek(out pooledStream));
594
var stream =
_connection
._streams[1];
607
Assert.Equal(0,
_connection
.StreamPool.Count);
627
_connection
.ServerSettings.MaxConcurrentStreams = 1;
639
Assert.Equal(0,
_connection
.StreamPool.Count);
652
_connection
.ServerSettings.MaxConcurrentStreams = 1;
669
Assert.Equal(0,
_connection
.StreamPool.Count);
683
Assert.Equal(0,
_connection
.StreamPool.Count);
696
Assert.Equal(1,
_connection
.StreamPool.Count);
698
_connection
.StreamPool.TryPeek(out var pooledStream);
703
Assert.Equal(1,
_connection
.StreamPool.Count);
708
Assert.Equal(0,
_connection
.StreamPool.Count);
1679
Assert.Equal((uint)100,
_connection
.MaxTrackedStreams);
1692
Assert.Equal((uint)200,
_connection
.MaxTrackedStreams);
1705
Assert.Equal((uint)int.MaxValue * 2,
_connection
.MaxTrackedStreams);
1717
Assert.Equal(100u,
_connection
.MaxTrackedStreams);
1718
_connection
.Abort(new ConnectionAbortedException(), ConnectionEndReason.AbortedByApp);
1743
_connection
.SendEnhanceYourCalmOnStartStream = true;
2044
_connection
.HandleReadDataRateTimeout();
2503
_connection
.ServerSettings.MaxConcurrentStreams = 1;
3632
_connectionTask =
_connection
.ProcessRequestsAsync(new DummyApplication(_noopApplication));
3684
_connection
.ServerSettings.HeaderTableSize = 0;
3685
_connection
.ServerSettings.MaxConcurrentStreams = 1;
3686
_connection
.ServerSettings.MaxHeaderListSize = 4 * 1024;
3687
_connection
.ServerSettings.InitialWindowSize = 1024 * 1024 * 10;
3689
_connectionTask =
_connection
.ProcessRequestsAsync(new DummyApplication(_noopApplication));
3892
_connection
.ServerSettings.MaxFrameSize = Http2PeerSettings.MaxAllowedMaxFrameSize;
3953
_connection
.ServerSettings.MaxFrameSize = Http2PeerSettings.MinAllowedMaxFrameSize + 1024;
4163
var lifetime =
_connection
.ConnectionFeatures.Get<IConnectionLifetimeNotificationFeature>();
5126
_connection
.OnInputOrOutputCompleted();
5141
_connection
.Abort(new ConnectionAbortedException(), ConnectionEndReason.AbortedByApp);
5216
_connection
.StopProcessingNextRequest(ConnectionEndReason.AppShutdownTimeout);
5249
_connection
.StopProcessingNextRequest(ConnectionEndReason.AppShutdownTimeout);
5300
_connection
.OnInputOrOutputCompleted();
5320
await
_connection
.ProcessRequestsAsync(new DummyApplication(_noopApplication)).DefaultTimeout();
5340
await
_connection
.ProcessRequestsAsync(new DummyApplication(_noopApplication)).DefaultTimeout();
5507
_connection
.ServerSettings.MaxConcurrentStreams = 0; // Refuse all streams
5509
var connectionTask =
_connection
.ProcessRequestsAsync(new DummyApplication(_noopApplication));
5589
_connection
.ServerSettings.MaxConcurrentStreams = 1;
5591
var connectionTask =
_connection
.ProcessRequestsAsync(new DummyApplication(_ => requestBlock.Task));
5662
_connection
.ServerSettings.MaxConcurrentStreams = 1;
5873
await SendAsync(Encoding.ASCII.GetBytes($"GET /{new string('a',
_connection
.Limits.MaxRequestLineSize)} HTTP/1.1\r\n"));
5890
_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));