Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

send multiple message error #42

Open
neo125874 opened this issue Jan 21, 2016 · 4 comments
Open

send multiple message error #42

neo125874 opened this issue Jan 21, 2016 · 4 comments

Comments

@neo125874
Copy link

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.

@kerryjiang
Copy link
Owner

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

@neo125874
Copy link
Author

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
Copy link
Author

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

@kerryjiang
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants