SuperWebSocket icon indicating copy to clipboard operation
SuperWebSocket copied to clipboard

WebSocketServer的SessionClosed触发后,并没有与客户端进行断开

Open shllove opened this issue 8 years ago • 4 comments

调用方式为直接添加的事件回调 SessionClosed += OnWSDisconnect;

日志输出如下: 2016-02-26 18:11:17,292 [6188] DEBUG System.Object - PushWebSocketServer_-OnWSDisconnect-WebSocketSession:10.96.16.236:4715-CloseReason:SocketError

但是客户端的socket并没有触发断开, 还可以正常发送ping和接收pong

目前使用的SuperSocket类库为 1.6.6.0

麻烦帮忙看下,谢谢。

shllove avatar Mar 03 '16 02:03 shllove

Are you sure the connection experienced the socket error is the one you think can send ping and receive pong?

kerryjiang avatar Mar 03 '16 02:03 kerryjiang

socket 是tcp通道会经过三次握手的,应该是同一个

Best Regards,

苏洪亮

Henry Su

Date: Wed, 2 Mar 2016 18:49:16 -0800 From: [email protected] To: [email protected] CC: [email protected] Subject: Re: [SuperWebSocket] WebSocketServer的SessionClosed触发后,并没有与客户端进行断开 (#30)

Are you sure the connection experienced the socket error is the one you think can send ping and receive pong?

― Reply to this email directly or view it on GitHub.

shllove avatar Mar 03 '16 03:03 shllove

How do you know?

From: Henry Su [mailto:[email protected]] Sent: Thursday, March 3, 2016 11:17 AM To: kerryjiang/SuperWebSocket [email protected] Cc: Kerry Jiang [email protected] Subject: Re: [SuperWebSocket] WebSocketServer的SessionClosed触发后,并没有与客户端进行断开 (#30)

socket 是tcp通道会经过三次握手的,应该是同一个

Best Regards,

苏洪亮

Henry Su

Date: Wed, 2 Mar 2016 18:49:16 -0800 From: [email protected] mailto:[email protected]
To: [email protected] mailto:[email protected]
CC: [email protected] mailto:[email protected]
Subject: Re: [SuperWebSocket] WebSocketServer的SessionClosed触发后,并没有与客户端进行断开 (#30)

Are you sure the connection experienced the socket error is the one you think can send ping and receive pong?

― Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/kerryjiang/SuperWebSocket/issues/30#issuecomment-191558554 . https://github.com/notifications/beacon/AAb1fLCvJE06uZgXTWfkiC-GR7kuhvFhks5pplKggaJpZM4HoDeB.gif

kerryjiang avatar Mar 03 '16 09:03 kerryjiang

那么冒昧问下,有什么办法鉴别ping和pong与发送消息的socket是否同一个呢?

Best Regards,

苏洪亮

Henry Su

Date: Thu, 3 Mar 2016 01:11:43 -0800 From: [email protected] To: [email protected] CC: [email protected] Subject: Re: [SuperWebSocket] WebSocketServer的SessionClosed触发后,并没有与客户端进行断开 (#30)

How do you know?

From: Henry Su [mailto:[email protected]]

Sent: Thursday, March 3, 2016 11:17 AM

To: kerryjiang/SuperWebSocket [email protected]

Cc: Kerry Jiang [email protected]

Subject: Re: [SuperWebSocket] WebSocketServer的SessionClosed触发后,并没有与客户端进行断开 (#30)

socket 是tcp通道会经过三次握手的,应该是同一个

Best Regards,

苏洪亮

Henry Su

Date: Wed, 2 Mar 2016 18:49:16 -0800

From: [email protected] mailto:[email protected]

To: [email protected] mailto:[email protected]

CC: [email protected] mailto:[email protected]

Subject: Re: [SuperWebSocket] WebSocketServer的SessionClosed触发后,并没有与客户端进行断开 (#30)

Are you sure the connection experienced the socket error is the one you think can send ping and receive pong?

D

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub https://github.com/kerryjiang/SuperWebSocket/issues/30#issuecomment-191558554 . https://github.com/notifications/beacon/AAb1fLCvJE06uZgXTWfkiC-GR7kuhvFhks5pplKggaJpZM4HoDeB.gif

― Reply to this email directly or view it on GitHub.

shllove avatar Mar 05 '16 12:03 shllove