RestComm/jdiameter

Memory leak in ServerRfSessionImpl

Opened this issue · 1 comments

@OverRide
public void sendAccountAnswer(RfAccountingAnswer accountAnswer) throws InternalException, IllegalStateException, RouteException, OverloadException {
try {
session.send(accountAnswer.getMessage());
/* TODO: Need to notify state change...
if (isStateless() && isValid()) {
session.release();
}
*/
}
catch (IllegalDiameterStateException e) {
throw new IllegalStateException(e);
}
}

After sending the answer, the sessions never gets released (beacuse its commented) and it causes memory leak in the long run.

Hi @Skymania ! 👋
Thanks for raising the issue!

Would you like to have a go at submitting a Pull Request for fixing this issue?
If you need any help on the process, our Open Source Playbook might be of some help.

Please let me know if there's anything else you need.