Commit 199ed7c
committed
Treat EndOfRLPException as invalid packet in peer discovery
When processing peer discovery packets, EndOfRLPException from malformed
RLP-encoded ENR responses should be treated as invalid packets and
discarded with debug-level logging, similar to DecodeException and
PeerDiscoveryPacketDecodingException.
This prevents log pollution from malformed packets received from the
network, which currently get logged as ERROR instead of being quietly
discarded.
Fixes #9596
Signed-off-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 4e088d6 commit 199ed7c
1 file changed
Lines changed: 3 additions & 1 deletion
File tree
- ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
342 | 343 | | |
343 | 344 | | |
344 | 345 | | |
345 | | - | |
| 346 | + | |
| 347 | + | |
346 | 348 | | |
347 | 349 | | |
348 | 350 | | |
| |||
0 commit comments