-
Notifications
You must be signed in to change notification settings - Fork 21
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
Clean disconnect issue #2
Comments
I too have the same problem. when ever you tried to call websocket.close() from a client, it throws error. Seeing the log I could trace that the error is thrown while simaphore is tried to release in ReceiveEventArgs_Completed event handler under else condition. Sample code below. if (context.ReceivedByteCount > 0) 06-23 16:01:58.748 F/ ( 5122): * Assertion at /Users/builder/data/lanes/monodroid-mlion-monodroid-4.20-series/ba9bbbdd/source/mono/mono/io-layer/wthreads.c:93, condition If you could fix this issue, plz post the solution. |
I am trying to play with your example chat application. I'm running the server on ArchLinux using Mono/.Net 4.0 and for client browsers I've tried Qupzilla 1.4.3 (webkit v537.21) and Google Chrome (27.0.1453.94).
On the chat client web page when I click the disconnect button the server crashes with the following exception:
Unhandled Exception:
System.ArgumentException: Buffer is empty
Parameter name: buffers
at System.Net.Sockets.Socket.Send (IList
1 buffers, SocketFlags socketFlags, System.Net.Sockets.SocketError& errorCode) [0x00000] in <filename unknown>:0 at System.Net.Sockets.Socket.Send (IList
1 buffers, SocketFlags socketFlags) [0x00000] in :0at System.Net.Sockets.Socket+Worker.SendGeneric () [0x00000] in :0
When this happens the OnDisconnect function is obviously not called for the context. If I just close the tab displaying the chat client the disconnections is handled cleanly. The following call in the demo causes the problem, Am I missing something>
The text was updated successfully, but these errors were encountered: