code: public void activeConnect(HostPort hp, int connections) {
          for (int i = 0; i < connections; i++) {
  
              SocketBox sbox = new ManagedSocketBox();
              logger.debug("adding new empty socketBox to the socket pool");
              socketPool.add(sbox);
  
              logger.debug(
                           "connecting active socket "
                           + i
                           + "; total cached sockets = "
                           + socketPool.count());
  
              Task task =
                  new GridFTPActiveConnectTask(
                                               hp,
                                               localControlChannel,
                                               sbox,
                                               gSession);
  
              runTask(task);
          }
      }
docs: Act as the active side. Connect to the server and
  store the newly connected sockets in the socketPool.