statianzo/Fleck — Issue #30: Secure Socket Async problem
Author: smallwind1912
Created: 2012-01-04 13:24:46+00:00
State: open

H I I use Fleck in my app when I run it throw that Error

System.NotSupportedException: The BeginWrite method cannot be called when another write operation is pending.
at System.Net.Security._SslStream.ProcessWrite(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.BeginWrite(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback asyncCallback, Object asyncState)
at System.Net.Security.SslStream.BeginWrite(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback asyncCallback, Object asyncState)
at Game.Base.SocketWrapper.<>c__DisplayClass16.b__12(AsyncCallback cb, Object s) in ####################################################\Frame\SocketWrapper.cs:line 111
at System.Threading.Tasks.TaskFactory.FromAsync(Func`3 beginMethod, Action`1 endMethod, Object state, TaskCreationOptions creationOptions)
at System.Threading.Tasks.TaskFactory.FromAsync(Func`3 beginMethod, Action`1 endMethod, Object state)
at Game.Base.SocketWrapper.Send(Byte[] buffer, Action callback, Action`1 error) in
####################################################\Frame\SocketWrapper.cs:line 113
at Game.Base.Frame.WebSocketConnection.SendBytes(Byte[] bytes, Action callback) in ####################################################\Frame\WebSocketConnection.cs:line 116