[
https://issues.apache.org/jira/browse/DIRSERVER-2224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17063687#comment-17063687
]
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: https://issues.apache.org/jira/browse/DIRSERVER-2224
> 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
> (http://mail-archives.apache.org/mod_mbox/directory-users/201801.mbox/browser),
> 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
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]