You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have setup the OptionKeepAlive in both TcpServer and TcpClient, the client successfully connect to the server.
However, when I turn off the router to test the keepalive feature, after the time (60 seconds), the client's OnDisconnected() and OnError() have not been triggered, and the server TcpSession's OnDisconnected() and OnError() also have not triggered.
Would like to know what is the correct way to setup the keepalive so the application can be notified once the connection has been killed in the socket level. Thank you.
Runtime: .NET 8.0
OS: Mac OS 14.4.1 (23E224)
IDE: JetBrains Rider 2024.1
The text was updated successfully, but these errors were encountered:
I have setup the OptionKeepAlive in both TcpServer and TcpClient, the client successfully connect to the server.
However, when I turn off the router to test the keepalive feature, after the time (60 seconds), the client's OnDisconnected() and OnError() have not been triggered, and the server TcpSession's OnDisconnected() and OnError() also have not triggered.
ChatServer.cs
ChatClient.cs
Would like to know what is the correct way to setup the keepalive so the application can be notified once the connection has been killed in the socket level. Thank you.
Runtime: .NET 8.0
OS: Mac OS 14.4.1 (23E224)
IDE: JetBrains Rider 2024.1
The text was updated successfully, but these errors were encountered: