WebSocket4Net icon indicating copy to clipboard operation
WebSocket4Net copied to clipboard

send multiple message error

Open neo125874 opened this issue 10 years ago • 4 comments

I'm using WebSocketListener for server and WebSocket4Net for client, and the application is working with a robot, if the client typing so quickly then it will show the error "無法從傳輸連接讀取資料: 遠端主機已強制關閉一個現存的連線。";

Is this kind of problems causing by library or because of the websocket couldn't send & receive at the same time?

Thanks.

neo125874 avatar Jan 21 '16 07:01 neo125874

Where did you get this error? Server side or client side? Do you have the exception's full stack trace?

kerryjiang avatar Jan 21 '16 07:01 kerryjiang

i got this in the client-side, it occurred when call websocket.send multiple times, and i guess the robot probably was sending back some answers at the mean time;

i don't have the full stack trace, it showed at the websocket.Error += new EventHandler<SuperSocket.ClientEngine.ErrorEventArgs> so i have no idea about which step will cause this error,

thanks.

neo125874 avatar Jan 21 '16 08:01 neo125874

occurred at this following method, private static void websocket_Error(object sender, SuperSocket.ClientEngine.ErrorEventArgs e) { Console.WriteLine(e.Exception.Message); }

neo125874 avatar Jan 21 '16 08:01 neo125874

From the error message, it looks like a server side issue.

Probably you can get more details of this problem by tracing the network communication directly.

kerryjiang avatar Mar 23 '16 16:03 kerryjiang