Beispiel #1
0
 internal void HandleUnexpectedProcessingException()
 {
     // unexpected exception -> processing problem on this connection, close connection...
     try {
         m_msgHandler.SendConnectionCloseMessage();
     } finally {
         m_msgHandler.ForceCloseConnection();
     }
 }
Beispiel #2
0
 private void TimeOutCallback(object state)
 {
     if (!m_alreadyNotified)
     {
         lock (this) {
             if (!m_alreadyNotified)
             {
                 m_alreadyNotified = true;
                 m_transportHandler.CancelWaitForResponseMessage(m_requestId);
                 Completed();
                 m_transportHandler.ForceCloseConnection(); // close the connection after a timeout
                 m_callback(m_clientSinkStack, m_clientConnection,
                            null, new TIMEOUT(32, CompletionStatus.Completed_MayBe));
             }
         }
     }
 }