directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lécharny (Jira) <>
Subject [jira] [Commented] (DIRSERVER-2224) To provide "Idle Connection timeout" feature in Apache-DS.
Date Sat, 21 Mar 2020 00:13:00 GMT


Emmanuel Lécharny commented on DIRSERVER-2224:

Sorry, no, it hasn't been implemented...

First, I barely had time last year to work on the server, due to a day job change.
Second, it's a bit more complex than what I thought : we need to check the connection 'idleness'
and keep a track of that information, in order to be able to 'kill' it. This is possible,
but a bit low-level (MINA generate an idle event that has to be leveraged for that purpose:
every second, an event is sent, and the connection has to count how many seconds the connection
has been idled and compare that with a parameter. Of course, in case of some activity, this
counter has to be reset).

My fear is that if you have thousands of connections, the server will have to process thousands
of idle events each second, which is clearly not optimal.

Another option would be to set a thread that verify periodically each connection to check
if the latest received request is not exceeding the maximum allowed delay. Not trivial.

OTOH, is that a problem if you have a large number of inactive connections ?

> To provide "Idle Connection timeout" feature in Apache-DS. 
> -----------------------------------------------------------
>                 Key: DIRSERVER-2224
>                 URL:
>             Project: Directory ApacheDS
>          Issue Type: Wish
>          Components: network
>    Affects Versions: 2.0.0-M24
>            Reporter: virupaksh ankad
>            Priority: Minor
>              Labels: performance
>             Fix For: 2.0.0.AM27
> Hello,
> In context with the query that was posted earlier (, 
To protect from LDAP clients who may use large connection pools, we are looking at terminating
connections after certain period of inactivity, this is a request to the Apache-DS development
team to provide a configurable "Idle Connection timeout" feature.

This message was sent by Atlassian Jira

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message