Skip to content

Commit 181f53a

Browse files
committed
Many changes
1 parent 3a6d136 commit 181f53a

133 files changed

Lines changed: 895 additions & 1428 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/TurboHTTP.Benchmarks/Internal/ClientHelper.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using Microsoft.Extensions.DependencyInjection;
33
using Microsoft.Extensions.DependencyInjection.Extensions;
44
using Microsoft.Extensions.Options;
5-
using TurboHTTP.Internal;
65

76
namespace TurboHTTP.Benchmarks.Internal;
87

src/TurboHTTP.IntegrationTests/H10/ExpectContinueSpec.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
using System.Net;
22
using System.Text;
3-
using Microsoft.Extensions.DependencyInjection;
43
using TurboHTTP.IntegrationTests.Shared;
5-
using TurboHTTP.Protocol.Semantics;
64

75
namespace TurboHTTP.IntegrationTests.H10;
86

src/TurboHTTP.IntegrationTests/H11/ExpectContinueSpec.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
using System.Net;
22
using System.Text;
3-
using Microsoft.Extensions.DependencyInjection;
43
using TurboHTTP.IntegrationTests.Shared;
5-
using TurboHTTP.Protocol.Semantics;
64

75
namespace TurboHTTP.IntegrationTests.H11;
86

src/TurboHTTP.IntegrationTests/H2/ExpectContinueSpec.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
using System.Net;
22
using System.Text;
3-
using Microsoft.Extensions.DependencyInjection;
43
using TurboHTTP.IntegrationTests.Shared;
5-
using TurboHTTP.Protocol.Semantics;
64

75
namespace TurboHTTP.IntegrationTests.H2;
86

src/TurboHTTP.IntegrationTests/LoggingBridgeSpec.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,8 @@ private ITurboHttpClient BuildClientViaUserDI(bool withTurboTrace = false)
9999
{
100100
var loggerFactory = sp.GetRequiredService<ILoggerFactory>();
101101
var diSetup = DependencyResolverSetup.Create(sp);
102-
var dispatcherConfig = TurboHttpDispatchers.CreateConfig(
103-
TurboClientOptions.DefaultMaxEndpointSubstreams);
104102
var setup = BootstrapSetup.Create()
105-
.WithConfig(LoggingHocon.WithFallback(dispatcherConfig))
103+
.WithConfig(LoggingHocon)
106104
.And(diSetup)
107105
.And(new LoggerFactorySetup(loggerFactory));
108106
return ActorSystem.Create("turbohttp-bridge-test", setup);

src/TurboHTTP.IntegrationTests/Shared/ActorSystemFixture.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using Akka.Actor;
2-
using Akka.Actor.Setup;
3-
using Akka.Configuration;
42
using Akka.DependencyInjection;
53
using Microsoft.Extensions.DependencyInjection;
64
using TurboHTTP.Internal;
@@ -20,9 +18,7 @@ public ValueTask InitializeAsync()
2018
{
2119
var services = new ServiceCollection();
2220
var diSetup = DependencyResolverSetup.Create(services.BuildServiceProvider());
23-
var dispatcherConfig = TurboHttpDispatchers.CreateConfig(
24-
TurboClientOptions.DefaultMaxEndpointSubstreams);
25-
var bootstrap = BootstrapSetup.Create().WithConfig(dispatcherConfig);
21+
var bootstrap = BootstrapSetup.Create();
2622

2723
var setup = bootstrap.And(diSetup);
2824
System = ActorSystem.Create($"turbohttp-shared-{Guid.NewGuid()}", setup);

src/TurboHTTP.IntegrationTests/Shared/ClientHelper.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,12 @@ public static ClientHelper CreateClient(
6666
// Create an ActorSystem with DependencyResolver so that Servus.Akka
6767
// ResolveActor<T> works inside TurboClientStreamManager.
6868
var diSetup = DependencyResolverSetup.Create(services.BuildServiceProvider());
69-
var dispatcherConfig = TurboHttpDispatchers.CreateConfig(
70-
TurboClientOptions.DefaultMaxEndpointSubstreams);
7169
var bootstrap = BootstrapSetup.Create();
7270

7371
if (loggerFactory is not null)
74-
bootstrap = bootstrap.WithConfig(LoggingHocon.WithFallback(dispatcherConfig));
75-
else
76-
bootstrap = bootstrap.WithConfig(dispatcherConfig);
72+
{
73+
bootstrap = bootstrap.WithConfig(LoggingHocon);
74+
}
7775

7876
var setup = loggerFactory is not null
7977
? bootstrap.And(diSetup).And(new LoggerFactorySetup(loggerFactory))

src/TurboHTTP.IntegrationTests/TLS/ExpectContinueSpec.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
using System.Net;
22
using System.Text;
3-
using Microsoft.Extensions.DependencyInjection;
43
using TurboHTTP.IntegrationTests.Shared;
5-
using TurboHTTP.Protocol.Semantics;
64

75
namespace TurboHTTP.IntegrationTests.TLS;
86

src/TurboHTTP.StreamTests/Dispatchers/DispatcherConfigurationSpec.cs

Lines changed: 0 additions & 159 deletions
This file was deleted.

src/TurboHTTP.StreamTests/Http10/Http10ConnectionStageReconnectSpec.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public async Task Http10ConnectionStage_should_not_reconnect_when_no_inflight_re
164164

165165
// Stage should NOT emit a ReconnectItem — verify no output within 200ms
166166
await Task.Delay(200, TestContext.Current.CancellationToken);
167-
networkSub.ExpectNoMsg(TimeSpan.Zero);
167+
networkSub.ExpectNoMsg(TimeSpan.Zero, TestContext.Current.CancellationToken);
168168

169169
// Upstream completes → stage completes
170170
serverSub.SendComplete();

0 commit comments

Comments
 (0)