This project is read-only.

Socket error - System.NotSupportedException

Sep 18, 2012 at 11:04 PM

Once a while that i will get an exception (see the exception belows).

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 SuperSocket.ClientEngine.SslStreamTcpSession.SendInternal(ArraySegment`1 segment)

Do you know what is going on?

Thanks.

Sep 19, 2012 at 1:47 AM
Which version are you using?

Sent from my Windows Phone

From: smo7k
Sent: 9/19/2012 6:04 AM
To: kerry-jiang@hotmail.com
Subject: Socket error - System.NotSupportedException [websocket4net:395998]

From: smo7k

Once a while that i will get an exception (see the exception belows).

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 SuperSocket.ClientEngine.SslStreamTcpSession.SendInternal(ArraySegment`1 segment)

Do you know what is going on?

Thanks.

Sep 19, 2012 at 4:12 AM

0.8.  Had you seen this problem before?

Sep 19, 2012 at 4:13 AM

No, I'll write a test case to cover it.

Sep 19, 2012 at 3:27 PM

A test case has been added, and it works correctly.

Could you download the latest websocket4net source code from "SOURCE CODE" page instead of from Download page?