My server gets a lot of DOS attacks. I am not sure if related, but I noticed I am getting messages "context: scheduled X idle sessions for termination" repeatedly. I looked at the logic and sessions are marked for purging when idle for a while by setting the kill_me property. The purge logic that runs periodically does not purge them because it only purges if the session state is CON_IDLE and kill_me, so the idle sessions just keep adding up.
Am I missing something? It looks like the purge logic should not look at the state and just purge the session. There are other times the kill_me property is set, so I am thinking that those conditions may not get purge either unless the session completes. Need a second opinion :-)
