diff options
author | Alberto Aguirre <albaguirre@gmail.com> | 2018-03-20 11:42:45 -0500 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-03-21 20:44:04 +0100 |
commit | be22c0d442a1c5c016e2ebb99075b61614b5b447 (patch) | |
tree | 7f4f93a8d38b02a1dc86183a2b08e27e9fffe9a0 /include/libssh/session.h | |
parent | 467d78a442a0b3cea20f7fefadf9fa4b5119b1fe (diff) | |
download | libssh-be22c0d442a1c5c016e2ebb99075b61614b5b447.tar.gz libssh-be22c0d442a1c5c016e2ebb99075b61614b5b447.tar.xz libssh-be22c0d442a1c5c016e2ebb99075b61614b5b447.zip |
Add a NODELAY option
Add a new option SSH_OPTIONS_NODELAY to enable or disable the
Nagle Algorithm (TCP_NODELAY) on the session socket.
Improved performance can be achieved for some applications like
sftp servers by enabling SSH_OPTIONS_NODELAY as typically, the
next request won't arrive until the server replies, which are
typically small writes.
Signed-off-by: Alberto Aguirre <albaguirre@gmail.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh/session.h')
-rw-r--r-- | include/libssh/session.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libssh/session.h b/include/libssh/session.h index 69a78dc4..1a069017 100644 --- a/include/libssh/session.h +++ b/include/libssh/session.h @@ -205,6 +205,7 @@ struct ssh_session_struct { char *gss_client_identity; int gss_delegate_creds; int flags; + int nodelay; } opts; /* counters */ ssh_counter socket_counter; |