cmd-sync-servers - v1.0.0
    Preparing search index...

    Class TransportPoolExperimental

    Hands out connected transports. A connection that fails with a transient error is dropped, so the next operation gets a fresh one. An FTP server that answers 421 (too many connections) shrinks the pool for the rest of the run.

    Index
    • get limit(): number
      Experimental

      The most operations the pool runs at once now.

      Returns number

    • Experimental

      What the server offers, connecting first when no connection is open yet.

      Parameters

      • Optionalsignal: AbortSignal

      Returns Promise<Capabilities>

    • Experimental

      Closes every idle connection; connections in use close when they are handed back.

      Returns Promise<void>

    • Experimental

      Runs operation on a connected transport.

      Type Parameters

      • T

      Parameters

      • operation: (transport: Transport) => Promise<T>
      • Optionalsignal: AbortSignal

      Returns Promise<T>

    • Experimental

      run with retries after transient failures, each on a fresh connection.

      Type Parameters

      • T

      Parameters

      Returns Promise<T>