From 6850ed2c2d06f9c4ca3441d8f5064f619e88359f Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Tue, 5 Jan 2021 02:14:11 +0000 Subject: [PATCH] looks like these do need to be enabled, hanging on pending sessions: debug: pending: session: 0x4181d180, handle: 0x0 debug: selecting: inbound , read: sockfd: 1, popfd: 1, write: sockfd: 0 debug: select: 1, read: sockfd: 1, popfd: 0, write: sockfd: 0 debug: pending: session: 0x4181d180, handle: 0x0 debug: selecting: inbound , read: sockfd: 1, popfd: 1, write: sockfd: 0 --- ggatessh/ggatessh.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ggatessh/ggatessh.c b/ggatessh/ggatessh.c index 8b8edce..66bc364 100644 --- a/ggatessh/ggatessh.c +++ b/ggatessh/ggatessh.c @@ -817,13 +817,13 @@ procreq: if (gsc_pending != NULL) { /* we are creating a new session */ if (gsc_pending->sc_session == NULL) { - //didwork = 1; + *didworkp = 1; gsc_pending->sc_session = libssh2_sftp_init(session); } if (gsc_pending->sc_session != NULL) { - //didwork = 1; + *didworkp = 1; gsc_pending->sc_handle = libssh2_sftp_open( gsc_pending->sc_session, "fstest/data.img", get_open_flags(), 0); @@ -839,7 +839,7 @@ procreq: TAILQ_INSERT_HEAD(&session_cache, gsc_pending, sc_next); gsc_pending = NULL; - //didwork = 1; + *didworkp = 1; goto procreq; } }