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 multiple packets very fast with multiple BeginWrite calls then i get the 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

(.NET 2) SSL Stream ans async write
_Nik_
Alex
Hammad_Awan
I think its very important for a network stream to support multiple async send operations. Thats the software design most applications are based on.
So i think the only solution for now is to use the stream in synchronous mode for sending.
Alex
blueinc
https://thecave.myjabber.net/svn/ags/XMPP/agsxmpp/trunk/net/ClientSocket.cs
Alex
Sossles
jnouel
yeah, Link is working...
thanks
e3Di
Does CanWrite return false then
Alex
ivannavi
RaoulDukey
No you don't need to fallback on Sync
You can simply issue the next send within the callback of the first send completion
Jeff DeLong
Hi Jon,
We are currently adding encryption to a socket server providing service to well over 500 concurrent socket connections, this really poses an issue for us, is there anyway we could push for a workaround hotfix other then the mentioned below which are not applicable for us.
Thanks,
Shai
Pieter van der Berg
Alex
links is not working, can you please provide me with valid link
Thanks in advance