void session_Closed(object sender, SocketSessionClosedEventArgs e)
        {
            m_MaxConnectionSemaphore.Release();

            IAsyncSocketSession socketSession = sender as IAsyncSocketSession;

            if (socketSession != null && this.m_ReadWritePool != null)
            {
                this.m_ReadWritePool.Push(socketSession.SocketAsyncProxy);
            }
        }
示例#2
0
 void session_Closed(object sender, SocketSessionClosedEventArgs e)
 {
     m_MaxConnectionSemaphore.Release();
 }
示例#3
0
 void session_Closed(object sender, SocketSessionClosedEventArgs e)
 {
     Interlocked.Decrement(ref m_LiveConnectionCount);
 }