diff --git a/EonaCat.Connections/EonaCat.Connections.csproj b/EonaCat.Connections/EonaCat.Connections.csproj index 9f8555a..961b564 100644 --- a/EonaCat.Connections/EonaCat.Connections.csproj +++ b/EonaCat.Connections/EonaCat.Connections.csproj @@ -11,7 +11,7 @@ EonaCat (Jeroen Saey) readme.md EonaCat.Connections - 1.1.1 + 1.1.2 EonaCat (Jeroen Saey) LICENSE EonaCat.png diff --git a/EonaCat.Connections/Models/Configuration.cs b/EonaCat.Connections/Models/Configuration.cs index 59ac115..1e8b2e8 100644 --- a/EonaCat.Connections/Models/Configuration.cs +++ b/EonaCat.Connections/Models/Configuration.cs @@ -83,7 +83,7 @@ namespace EonaCat.Connections.Models public int HeartbeatIntervalSeconds { get; set; } = 5; public bool EnablePingPongLogs { get; set; } public int MAX_MESSAGE_SIZE { get; set; } = 100 * 1024 * 1024; // 100 MB - public bool DisconectOnMissedPong { get; set; } + public bool DisconnectOnMissedPong { get; set; } public double IdleTimeoutSeconds { get; set; } = 30; // 0 means no idle timeout /// diff --git a/EonaCat.Connections/NetworkServer.cs b/EonaCat.Connections/NetworkServer.cs index cabe07d..e524490 100644 --- a/EonaCat.Connections/NetworkServer.cs +++ b/EonaCat.Connections/NetworkServer.cs @@ -374,7 +374,7 @@ namespace EonaCat.Connections RemoteEndPoint = client.RemoteEndPoint }); - if (_config.DisconectOnMissedPong) + if (_config.DisconnectOnMissedPong) { DebugConnection($"Disconnecting client {client.Nickname} ({client.Id}) due to missed PONG response."); _ = DisconnectClientAsync(clientId, DisconnectReason.NoPongReceived); diff --git a/README.md b/README.md index 9f688ba..750ab62 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ The `Configuration` class provides extensive customization options: - **EnableHeartbeat**: Enable ping-pong heartbeat (default: false) - **HeartbeatIntervalSeconds**: Heartbeat interval (default: 5) - **EnablePingPongLogs**: Log ping-pong messages (default: false) -- **DisconectOnMissedPong**: Disconnect on missed pong response (default: false) +- **DisconnectOnMissedPong**: Disconnect on missed pong response (default: false) ### Message Framing - **MessageFraming**: `None`, `Delimiter`, or `LengthPrefixed` (default: None) @@ -415,7 +415,7 @@ Keep connections alive and detect dead connections: ```csharp config.EnableHeartbeat = true; config.HeartbeatIntervalSeconds = 5; -config.DisconectOnMissedPong = true; // Disconnect if pong not received +config.DisconnectOnMissedPong = true; // Disconnect if pong not received ``` ### Idle Detection