diff options
author | Ryo Nakamura <upa@haeena.net> | 2023-09-09 14:32:15 +0900 |
---|---|---|
committer | Ryo Nakamura <upa@haeena.net> | 2023-11-01 19:54:18 +0900 |
commit | bf74aa095adf8d0a3b4144b29b2d7a48fe4e02b2 (patch) | |
tree | d3d58b31457af827cecf439b902e14b62d41c129 /src/ssh.c | |
parent | a88471fc43a8500f73cd55eeb87b3a990cb0b4f9 (diff) |
add -g option to specify TCP cc algorithm
This commit introduce SSH_OPTIONS_CCALGO option to the libssh patch
and add -g CONGESTION option to mscp.
Diffstat (limited to 'src/ssh.c')
-rw-r--r-- | src/ssh.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -64,6 +64,12 @@ static int ssh_set_opts(ssh_session ssh, struct mscp_ssh_opts *opts) return -1; } + if (is_specified(opts->ccalgo) && + ssh_options_set(ssh, SSH_OPTIONS_CCALGO, opts->ccalgo) < 0) { + mscp_set_error("failed to set cclago"); + return -1; + } + /* if NOT specified to enable Nagle's algorithm, disable it (set TCP_NODELAY) */ if (!opts->enable_nagle) { int v = 1; |