HPCC-24829 Client should discarded connection for unexpected data Reviewed-By: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com> Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
@@ -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;