private synchronized void initializePool() {
        if (readerPool == null) {
            readerPool = new GenericObjectPool<>(new XMPPPPacketReaderFactory());
            readerPool.setMaxTotal(-1);
            readerPool.setBlockWhenExhausted(false);
            readerPool.setTestOnReturn(true);
            readerPool.setTimeBetweenEvictionRunsMillis(Duration.ofMinutes(1).toMillis());
        }
    }
Returns the max duration that a connection can be idle before being closed.

@return the max duration that a connection can be idle.
xmppserver/src/main/java/org/jivesoftware/openfire/websocket/WebSocketClientConnectionHandler.java