SSLStream and async write

  • Thread starter Thread starter Alexander Gnauck
  • Start date Start date
A

Alexander Gnauck

Hello,

im using the new SSLStream class from the .NET framework version 2.0.
My stream is using async functions BeginRead and BeginWrite. When i send
2 packets in a row then i get following exception:

"The BeginWrite method cannot be called when another write operation is
pending"

Is there smth i do wrong? Shouldnt the stream itself take care about
pending packets and queue them?
I never had problems before with normal unencrypted sockets in my apps.

Thanx Alex

--
Alexander Gnauck

AG-Software
Haagstr. 12
74080 Heilbronn
Germany
http://www.ag-software.de
 
Back
Top