瀏覽代碼

Merge pull request #14229 from mayx/HPCC-24829-UnexpectedData

HPCC-24829 Client should discarded connection for unexpected data

Reviewed-By: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 4 年之前
父節點
當前提交
b16f34d0cf
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      common/thorhelper/persistent.cpp

+ 6 - 0
common/thorhelper/persistent.cpp

@@ -368,6 +368,12 @@ public:
             if (!ignore)
                 m_notify->notifySelected(sock, selected, this, reachedQuota);
         }
+        else
+        {
+            PERSILOG(PersistentLogLevel::PLogNormal, "PERSISTENT: Unexpected data received on connection %d, so discard the connection.", sock->OShandle());
+            remove(sock);
+        }
+
         return false;
     }