sqlload 0.54.0

SQL data loading tooling.
use std::time::Duration;

/// The bastion's port when the `ssh` table sets none.
pub const SSH_PORT: u16 = 22;

/// Where Windows's OpenSSH agent service listens when `SSH_AUTH_SOCK` names no other pipe.
#[cfg(any(windows, test))]
pub const OPENSSH_AGENT_PIPE: &str = r"\\.\pipe\openssh-ssh-agent";

/// How long to wait for the bastion to answer and sign the client in.
pub const CONNECT_TIMEOUT: Duration = Duration::from_secs(30);

/// How often an idle tunnel asks the bastion whether it is still there, so long reads and `load --follow` survive idle firewalls.
pub const KEEPALIVE_INTERVAL: Duration = Duration::from_secs(15);

/// Unanswered keepalives after which the tunnel counts as dropped.
pub const KEEPALIVE_MAX: usize = 3;

/// How long one SFTP request may wait for its answer: reads queue up to 16 requests of 256 KiB each, so the default 10 seconds fails on links slower than a few Mbit/s.
pub const SFTP_REQUEST_TIMEOUT: Duration = Duration::from_secs(300);