Changing packet dispatch, packets dying on gateway and not being relayed

This commit is contained in:
dingo
2026-02-28 15:10:49 -05:00
parent fd8fe950f8
commit 285d67374e
7 changed files with 427 additions and 67 deletions
+9 -1
View File
@@ -8,7 +8,8 @@ namespace SOR.Gateway;
/// {
/// "Gateway": {
/// "AuthTimeoutMs": 10000,
/// "MaxMessagesPerSecond": 20
/// "MaxMessagesPerSecond": 20,
/// "RemoteDispatchTimeoutMs": 3000
/// }
/// }
/// </summary>
@@ -37,4 +38,11 @@ public sealed class GatewayOptions
/// This option is defined now so configuration is in place before enforcement is added.
/// </summary>
public int MaxMessagesPerSecond { get; set; } = 20;
/// <summary>
/// Maximum time the Gateway waits for an internal worker to reply to a relayed
/// client message before returning an error to the client.
/// Default: 3 seconds.
/// </summary>
public int RemoteDispatchTimeoutMs { get; set; } = 3_000;
}