@@ -162,8 +162,8 @@ private static async Task<ExitCode> Run(Configuration config)
162
162
163
163
string GetAssemblyInfo ( Assembly assembly ) => $ "{ assembly . Location } , modified { new FileInfo ( assembly . Location ) . LastWriteTime } ";
164
164
165
- Type msQuicApiType = Type . GetType ( "System.Net.Quic.MsQuicApi, System.Net.Quic" ) ;
166
- string msQuicLibraryVersion = ( string ) msQuicApiType . GetProperty ( "MsQuicLibraryVersion" , BindingFlags . NonPublic | BindingFlags . Static ) . GetGetMethod ( true ) . Invoke ( null , Array . Empty < object ? > ( ) ) ;
165
+ Type msQuicApiType = Type . GetType ( "System.Net.Quic.MsQuicApi, System.Net.Quic" ) ! ;
166
+ string msQuicLibraryVersion = ( string ) msQuicApiType . GetProperty ( "MsQuicLibraryVersion" , BindingFlags . NonPublic | BindingFlags . Static ) ! . GetGetMethod ( true ) ! . Invoke ( null , Array . Empty < object ? > ( ) ) ! ;
167
167
168
168
Console . WriteLine ( " .NET Core: " + GetAssemblyInfo ( typeof ( object ) . Assembly ) ) ;
169
169
Console . WriteLine ( " ASP.NET Core: " + GetAssemblyInfo ( typeof ( WebHost ) . Assembly ) ) ;
@@ -192,8 +192,8 @@ private static async Task<ExitCode> Run(Configuration config)
192
192
{
193
193
// If the system gets overloaded, MsQuic has a tendency to drop incoming connections, see https://github.com/dotnet/runtime/issues/55979.
194
194
// So in case we're running H/3 stress test, we're using the same hack as for System.Net.Quic tests, which increases the time limit for pending operations in MsQuic thread pool.
195
- object msQuicApiInstance = msQuicApiType . GetProperty ( "Api" , BindingFlags . NonPublic | BindingFlags . Static ) . GetGetMethod ( true ) . Invoke ( null , Array . Empty < object ? > ( ) ) ;
196
- QUIC_API_TABLE * apiTable = ( QUIC_API_TABLE * ) ( Pointer . Unbox ( msQuicApiType . GetProperty ( "ApiTable" ) . GetGetMethod ( ) . Invoke ( msQuicApiInstance , Array . Empty < object ? > ( ) ) ) ) ;
195
+ object msQuicApiInstance = msQuicApiType . GetProperty ( "Api" , BindingFlags . NonPublic | BindingFlags . Static ) ! . GetGetMethod ( true ) ! . Invoke ( null , Array . Empty < object ? > ( ) ) ! ;
196
+ QUIC_API_TABLE * apiTable = ( QUIC_API_TABLE * ) ( Pointer . Unbox ( msQuicApiType . GetProperty ( "ApiTable" ) ! . GetGetMethod ( ) ! . Invoke ( msQuicApiInstance , Array . Empty < object ? > ( ) ) ! ) ) ;
197
197
QUIC_SETTINGS settings = default ( QUIC_SETTINGS ) ;
198
198
settings . IsSet . MaxWorkerQueueDelayUs = 1 ;
199
199
settings . MaxWorkerQueueDelayUs = 2_500_000u ; // 2.5s, 10x the default
0 commit comments