mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-06-09 07:33:12 -04:00
Add log
This commit is contained in:
parent
a8d221162a
commit
538751b9da
1 changed files with 6 additions and 1 deletions
|
@ -686,9 +686,14 @@ public class Connection implements MessageListener {
|
||||||
|
|
||||||
|
|
||||||
// First we check the size
|
// 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;
|
return;
|
||||||
|
|
||||||
|
|
||||||
// Then we check if data is of type Serializable (objectInputStream supports
|
// Then we check if data is of type Serializable (objectInputStream supports
|
||||||
// Externalizable objects as well)
|
// Externalizable objects as well)
|
||||||
Serializable serializable;
|
Serializable serializable;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue