When a peer connects to the mobicents stack, it is added to the Peer Table.
When disconnected the entry is still present since it may be a temporary
disconnection and data associated (such as statistics) is to be kept.
But this can represent a potential security flaw against DoS attacks, by
connecting from different peers, to overload the peer table, causing every
lookup to take longer and eventually end in an Out of Memory error.
Possible solutions:
1. Limit the size to a specific value and clean disconnected entries once it is
reached;
2. Have a periodic task to scan the peer table for disconnected entries
(eventually looking for last access time)
Original issue reported on code.google.com by brainslog on 28 Aug 2012 at 12:41
Original issue reported on code.google.com by
brainslog
on 28 Aug 2012 at 12:41