Are you referring to TCP sockets or some kind of protocol over TCP?  In
MINA idle and non-active are same thing.  Either data is received on the
socket or not.  If data isn’t received and the idle timer is configured,
then idle events are dispatched and the IoHandler can use that event to
take the next step; such as closing the session.

On Sun, Mar 25, 2018 at 7:55 PM, Juan Palacios <[email protected]>
wrote:

> Hi
> I was hoping I could get some support analysing a change I'd like to make
> to our MINA integration.
>
> Our application limits the total number of sessions it will open
> concurrently to keep high load from hurting our performance.
>
> However we've noticed recently that some of our users are configuring
> ControlPersist + KeepAlive settings for their clients. This keeps sessions
> alive for extended periods of time (we've seen sessions going for days).
>
> I was wondering if there was a way of detecting sessions which are
> *only* producing
> keep alive traffic and terminating them after a certain period of time. The
> goal is to prevent these users from exhausting the pool of available
> sessions.
>
> Thanks
>

Reply via email to