set TCP_NODELAY by default and introduce -N option to disable it

This commit is contained in:
Ryo Nakamura
2022-12-04 21:32:48 +09:00
parent 3b794ab51b
commit e1d14623f4
3 changed files with 14 additions and 2 deletions

View File

@@ -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;
}