by Anatoliy Ryaboy [anatoliy dot y dot ryaboy at verizon dot net] posted on 2004/09/07 |
|
We are creating a listener socket that allows multiple connections. These connections are sockets and are spawned in threads. After about 8 connections we recieve an exception from the Mentalis library shown below.
Exception: System.Net.Sockets.SocketException
Message: Overlapped I/O operation is in progress
Source: Org.Mentalis.Security
at Org.Mentalis.Security.Ssl.SecureSocket.BeginSend(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, AsyncCallback callback, Object state) in C:\ACurrent\seclib-1.0\seclib\Security\Ssl\SecureSocket.cs:line 348
at Org.Mentalis.Security.Ssl.SecureSocket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) in C:\ACurrent\seclib-1.0\seclib\Security\Ssl\SecureSocket.cs:line 326
at Org.Mentalis.Security.Ssl.SecureSocket.Send(Byte[] buffer, Int32 size, SocketFlags socketFlags) in C:\ACurrent\seclib-1.0\seclib\Security\Ssl\SecureSocket.cs:line 306
at Transmission_Core.SocketChatClient.SendData(String strDateLine) in d:\palm_solutions\transmission protocol\transmission_core\transmit.cs:line 1727
Please Help! |
by Gabe Halsmer [gabe dot halsmer at attbi dot com] posted on 2004/10/02 |
|
I'm using the SSL library for something similar too, a listening server with many connections at the same time. And while I've never seen your specific error message, I'd suggest rewriting the Accept, Send, and Receive like I've described in this post...
http://www.mentalis.org/forum/thread.qpx/307
In my experience, that Async logic doesn't work.
|