kerryjiang / SuperWebSocket

SuperWebSocket is a .NET implementation of WebSocket server.
Apache License 2.0
504 stars 194 forks source link

Ping Ping #47

Open imtrobin opened 6 years ago

imtrobin commented 6 years ago

Hi , I have a simple echo server deploy on Azure VM. When the client is idle after some time, the messages will not be sent/received. The client is still connected, there is no timeout. This does not happen on my local test.

I suspect Azure is killing idle connection, I have change ping pong time to a few secounds but it still does not work. Is there a way to log the Ping Pong, my logs couldn't see it.

My server setup

SuperWebsocketServer.Setup (new RootConfig (),
                             new ServerConfig
                             {
                                Name                      = "TestSuperWebSocket",
                               Ip                        = "Any",
                               KeepAliveInterval         = 4,
                               KeepAliveTime             = 3,
                               LogBasicSessionActivity   = true,
                               LogCommand                = true,
                               Port                      = Port,
                               MaxConnectionNumber       = 65000
                               }