Open bearyung opened 7 months ago
I also encountered this issue. Have you resolved it now? @bearyung @chronoxor
I also encountered this issue. Have you resolved it now? @bearyung @chronoxor
No, I have implemented my own heartbeat logic as a workaround.
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