* update(touchsocket):version to 4.0.0-rc.2 * update(touchsocket):version to 4.0.0-rc.5 * optimize(touchsocket):scheduler * Performance (TouchSocketHttp, TouchSocketWebApi): Enable server garbage collection
@@ -15,12 +15,6 @@ public class Program
await service.SetupAsync(new TouchSocketConfig()
.SetListenIPHosts(port)
- .SetNoDelay(true)
- .SetTransportOption(options =>
- {
- options.ReceivePipeOptions = TransportOption.CreateSchedulerOptimizedPipeOptions();
- options.SendPipeOptions = TransportOption.CreateSchedulerOptimizedPipeOptions();
- })
.SetMaxCount(1000000)
.ConfigureContainer(a =>
{
@@ -5,6 +5,7 @@
<Nullable>enable</Nullable>
<OutputType>Exe</OutputType>
<ImplicitUsings>enable</ImplicitUsings>
+ <ServerGarbageCollection>true</ServerGarbageCollection>
<UserSecretsId>dotnet-TouchSocketWebApi-987c185f-10b1-452b-beb6-47d798a5a131</UserSecretsId>
</PropertyGroup>
@@ -7,8 +7,8 @@
<InvariantGlobalization>true</InvariantGlobalization>
<!--<PublishAot>true</PublishAot>-->
- <UserSecretsId>dotnet-TouchSocketWebApi-987c185f-10b1-455b-beb6-47d798a5a131</UserSecretsId>
<ServerGarbageCollection>true</ServerGarbageCollection>
+ <UserSecretsId>dotnet-TouchSocketWebApi-987c185f-10b1-455b-beb6-47d798a5a131</UserSecretsId>
<ItemGroup>
@@ -18,12 +18,6 @@ public class Program
builder.Services.AddServiceHostedService<IHttpService, HttpService>(config =>
config.SetListenIPHosts(8080)
@@ -4,6 +4,7 @@
<TargetFramework>net9.0</TargetFramework>
<UserSecretsId>dotnet-WorkerService1-19b37b17-6043-4334-ad9a-9e0e3c670da3</UserSecretsId>
@@ -6,8 +6,8 @@
- <UserSecretsId>dotnet-TouchSocketWebApi-987c185f-10b1-452b-beb7-47d798a5a131</UserSecretsId>
+ <UserSecretsId>dotnet-TouchSocketWebApi-987c185f-10b1-452b-beb7-47d798a5a131</UserSecretsId>