do not report normal session close as error in server log
authorVictor Kirhenshtein <victor@netxms.org>
Tue, 26 Apr 2016 15:11:07 +0000 (18:11 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Tue, 26 Apr 2016 15:11:07 +0000 (18:11 +0300)
src/server/core/session.cpp

index 38f7d3f..fac86e2 100644 (file)
@@ -401,7 +401,10 @@ void ClientSession::readThread()
       // Receive error
       if (msg == NULL)
       {
-         debugPrintf(5, _T("readThread: message receiving error (%s)"), AbstractMessageReceiver::resultToText(result));
+         if (result == MSGRECV_CLOSED)
+            debugPrintf(5, _T("readThread: connection closed"));
+         else
+            debugPrintf(5, _T("readThread: message receiving error (%s)"), AbstractMessageReceiver::resultToText(result));
          break;
       }