code: protected void cleanup() {
  		int closed = 0;
  		SendBuffer buffer;
  		synchronized (buffers) {
  			int buffersToClose = buffers.size() - maxConnections;
  			if (buffersToClose < 1) {
  				return;
  			}
  			Iterator<SendBuffer> i = buffers.values().iterator();
  			while (i.hasNext()) {
  				buffer = i.next();
  				if (buffer.tryToClose()) {
  					i.remove();
  					closed++;
  					if (closed >= buffersToClose) {
  						return;
  					}
  				}
  			}
  		}
  	}
docs: --- CLEANUP CONNECTIONS ---