We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1926163 + 874ce16 commit 17339cbCopy full SHA for 17339cb
src/transports/ssh.c
@@ -212,6 +212,7 @@ static void ssh_stream_free(git_smart_subtransport_stream *stream)
212
}
213
214
if (s->session) {
215
+ libssh2_session_disconnect(s->session, "closing transport");
216
libssh2_session_free(s->session);
217
s->session = NULL;
218
@@ -489,7 +490,7 @@ static int _git_ssh_session_create(
489
490
491
492
do {
- rc = libssh2_session_startup(s, socket->s);
493
+ rc = libssh2_session_handshake(s, socket->s);
494
} while (LIBSSH2_ERROR_EAGAIN == rc || LIBSSH2_ERROR_TIMEOUT == rc);
495
496
if (rc != LIBSSH2_ERROR_NONE) {
0 commit comments