This commit is contained in:
Manfred Karrer 2016-05-07 13:17:41 +02:00
parent a8d221162a
commit 538751b9da

View File

@ -686,9 +686,14 @@ public class Connection implements MessageListener {
// First we check the size
if (size > getMaxMsgSize() && reportInvalidRequest(RuleViolation.MAX_MSG_SIZE_EXCEEDED))
boolean exceeds = size > getMaxMsgSize();
if (exceeds)
log.warn("size > MAX_MSG_SIZE. size=" + size);
if (exceeds && reportInvalidRequest(RuleViolation.MAX_MSG_SIZE_EXCEEDED))
return;
// Then we check if data is of type Serializable (objectInputStream supports
// Externalizable objects as well)
Serializable serializable;