Skip to content

Commit

Permalink
Test with worker queue delay
Browse files Browse the repository at this point in the history
  • Loading branch information
ManickaP committed Mar 7, 2023
1 parent 6709e8e commit 561d61a
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@ private MsQuicApi(QUIC_API_TABLE* apiTable)
ThrowHelper.ThrowIfMsQuicError(ApiTable->RegistrationOpen(&cfg, &handle), "RegistrationOpen failed");

Registration = new MsQuicSafeHandle(handle, apiTable->RegistrationClose, SafeHandleType.Registration);

QUIC_SETTINGS settings = default(QUIC_SETTINGS);
settings.IsSet.MaxWorkerQueueDelayUs = 1;
settings.MaxWorkerQueueDelayUs = (uint)TimeSpan.FromSeconds(2.5).TotalMicroseconds;
if (StatusFailed(ApiTable->SetParam(null, QUIC_PARAM_GLOBAL_SETTINGS, (uint)sizeof(QUIC_SETTINGS), (byte*)&settings)))
{
if (NetEventSource.Log.IsEnabled())
{
NetEventSource.Info(null, $"Unable to set MsQuic MaxWorkerQueueDelayUs.");
}
}
}
}

Expand Down

0 comments on commit 561d61a

Please sign in to comment.