From 9a0ba354578d6d06f1c085994a3f79c8b743f4e7 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Tue, 10 May 2005 04:57:34 +0000 Subject: [PATCH] Ignore extended data in the SFTP layer. --- README | 2 ++ src/sftp.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README b/README index 4accbd8..0cb9b75 100644 --- a/README +++ b/README @@ -4,6 +4,8 @@ libssh2 - SSH2 library Version 0.10 ------------ + Ignore extended data in the SFTP layer. With no other mechanism to deal with that data it'd just fill up and get stuck. + (Re)Fixed channel_write() to provide an opportunity for window space to become available again. (Re)Fixed SFTP INIT to send the correct SFTP packet length. diff --git a/src/sftp.c b/src/sftp.c index df1f709..f5d7b0e 100644 --- a/src/sftp.c +++ b/src/sftp.c @@ -435,6 +435,8 @@ LIBSSH2_API LIBSSH2_SFTP *libssh2_sftp_init(LIBSSH2_SESSION *session) libssh2_channel_set_blocking(channel, 1); + libssh2_channel_handle_extended_data(channel, LIBSSH2_CHANNEL_EXTENDED_DATA_IGNORE); + sftp = LIBSSH2_ALLOC(session, sizeof(LIBSSH2_SFTP)); if (!sftp) { libssh2_error(session, LIBSSH2_ERROR_ALLOC, "Unable to allocate a new SFTP structure", 0);