diff options
| author | Ryo Nakamura <upa@haeena.net> | 2022-12-04 21:32:48 +0900 |
|---|---|---|
| committer | Ryo Nakamura <upa@haeena.net> | 2022-12-04 21:32:48 +0900 |
| commit | e1d14623f41eb82c5acb90c17ba5c62b7d798bbe (patch) | |
| tree | 8b6ab42639c4d252c0b15e971f7da5075de83fe8 /src/ssh.c | |
| parent | 3b794ab51b04cd82f84f5b820f57267695066d80 (diff) | |
set TCP_NODELAY by default and introduce -N option to disable it
Diffstat (limited to 'src/ssh.c')
| -rw-r--r-- | src/ssh.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -62,6 +62,12 @@ static int ssh_set_opts(ssh_session ssh, struct ssh_opts *opts) return -1; } + if (opts->nodelay && + ssh_options_set(ssh, SSH_OPTIONS_NODELAY, &opts->nodelay) < 0) { + pr_err("failed to set nodelay\n"); + return -1; + } + return 0; } |
