Browse Source

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 years ago
parent
commit
b16f34d0cf
1 changed files with 6 additions and 0 deletions
  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;
     }