|
I'm facing a problem which has got me puzzled. I've got a custom network server application which is accepting sockets which are wrapped by NetworkStreams and then wrapped by SslStreams. All communication is being done asynchronously using Begin/End calls, and everything is working perfectly almost all of the time. However, a few times per day, all at the same time the writes on open sockets do not complete. The BeginWrite call returns, but then the async callback is never called back. I've added in a timeout on the wait handle which closes the socket if the write doesn't complete within a given time, and when this happens, all of the connections are re-established and everything works again. It looks like everything is blocking on a single resource here, but my code is not doing anything at this point. It's called BeginWrite on the SSL stream, and it's just waiting for a IOCP thread to call back. Paul
|