From 228392914711fc5c74d8f68f5ce3ec344cdff762 Mon Sep 17 00:00:00 2001 From: Brian White Date: Sun, 30 Jun 2019 01:40:07 -0400 Subject: [PATCH] Channel: increase max window size This matches OpenSSH's implementation. --- lib/Channel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Channel.js b/lib/Channel.js index f3330bc6..ffd6415c 100644 --- a/lib/Channel.js +++ b/lib/Channel.js @@ -6,7 +6,7 @@ var WritableStream = require('stream').Writable; var STDERR = require('ssh2-streams').constants.CHANNEL_EXTENDED_DATATYPE.STDERR; var PACKET_SIZE = 32 * 1024; -var MAX_WINDOW = 1 * 1024 * 1024; +var MAX_WINDOW = 2 * 1024 * 1024; var WINDOW_THRESHOLD = MAX_WINDOW / 2; var CUSTOM_EVENTS = [ 'CHANNEL_EOF',