File tree 1 file changed +6
-14
lines changed
src/BenchmarksApps/Kestrel/PlatformBenchmarks
1 file changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -15,24 +15,16 @@ public static IWebHostBuilder UseBenchmarksConfiguration(this IWebHostBuilder bu
15
15
{
16
16
builder . UseConfiguration ( configuration ) ;
17
17
18
- // Handle the transport type
19
- var webHost = builder . GetSetting ( "KestrelTransport" ) ;
20
-
21
- // Handle the thread count
22
- var threadCountRaw = builder . GetSetting ( "threadCount" ) ;
23
- int ? theadCount = null ;
24
-
25
- if ( ! string . IsNullOrEmpty ( threadCountRaw ) && Int32 . TryParse ( threadCountRaw , out var value ) )
26
- {
27
- theadCount = value ;
28
- }
29
-
30
18
builder . UseSockets ( options =>
31
19
{
32
- if ( theadCount . HasValue )
20
+ if ( int . TryParse ( builder . GetSetting ( "threadCount" ) , out int threadCount ) )
33
21
{
34
- options . IOQueueCount = theadCount . Value ;
22
+ options . IOQueueCount = threadCount ;
35
23
}
24
+
25
+ #if NETCOREAPP5_0
26
+ options . WaitForDataBeforeAllocatingBuffer = false ;
27
+ #endif
36
28
} ) ;
37
29
38
30
return builder ;
You can’t perform that action at this time.
0 commit comments