MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / setSendKeepAlive

Method setSendKeepAlive

extensions/sftp/client/SFTPClient.cpp:241–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241void SFTPClient::setSendKeepAlive(bool send_keepalive) {
242 /*
243 * Some SSH servers don't like if we send keepalives before we're connected,
244 * but libssh2 sends keepalives before that, so we will set up keepalives after
245 * a successful connection.
246 */
247 send_keepalive_ = send_keepalive;
248}
249
250bool SFTPClient::setUseCompression(bool use_compression) {
251 return libssh2_session_flag(ssh_session_, LIBSSH2_FLAG_COMPRESS, 1) == 0;

Callers 1

getOrCreateConnectionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected