summaryrefslogtreecommitdiff
path: root/src/ssh.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ssh.c')
-rw-r--r--src/ssh.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ssh.c b/src/ssh.c
index 7d4f84c..e0d94d7 100644
--- a/src/ssh.c
+++ b/src/ssh.c
@@ -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;
}