Add "ignore extended data" option to avoid having stderr data fill up

the receive window and leaving no room for stdio data.
This commit is contained in:
Sara Golemon
2004-12-08 03:39:29 +00:00
parent 2f41af6cdf
commit 82e9e2ba0f
4 changed files with 80 additions and 9 deletions

View File

@@ -202,6 +202,7 @@ LIBSSH2_API int libssh2_channel_write_ex(LIBSSH2_CHANNEL *channel, int stream_id
#define libssh2_channel_write_stderr(channel, buf, buflen) libssh2_channel_write_ex((channel), SSH_EXTENDED_DATA_STDERR, (buf), (buflen))
LIBSSH2_API void libssh2_channel_set_blocking(LIBSSH2_CHANNEL *channel, int blocking);
LIBSSH2_API void libssh2_channel_ignore_extended_data(LIBSSH2_CHANNEL *channel, int ignore);
LIBSSH2_API int libssh2_channel_send_eof(LIBSSH2_CHANNEL *channel);
LIBSSH2_API int libssh2_channel_eof(LIBSSH2_CHANNEL *channel);

View File

@@ -98,7 +98,7 @@ typedef struct _libssh2_channel_data {
unsigned long window_size_initial, window_size, packet_size;
/* Set to 1 when CHANNEL_CLOSE / CHANNEL_EOF sent/received */
int close, eof;
char close, eof, ignore_extended_data;
} libssh2_channel_data;
struct _LIBSSH2_CHANNEL {