synchronized private void cleanupIdleConnections(String serverName) {
long currentTime = System.currentTimeMillis();
for (int i = 0; i < connectionArray.size();) {
Connection c = connectionArray.get(i);
if (c.timedOut(currentTime)) {
if (Server.LOG.isDebugEnabled()) {
Server.LOG.debug(serverName + ": disconnecting client "
+ c.getHostAddress());
}
closeConnectionWithoutException(c);