Skip to content

Commit 2283929

Browse files
committed
Channel: increase max window size
This matches OpenSSH's implementation.
1 parent bf8ad96 commit 2283929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Channel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var WritableStream = require('stream').Writable;
66
var STDERR = require('ssh2-streams').constants.CHANNEL_EXTENDED_DATATYPE.STDERR;
77

88
var PACKET_SIZE = 32 * 1024;
9-
var MAX_WINDOW = 1 * 1024 * 1024;
9+
var MAX_WINDOW = 2 * 1024 * 1024;
1010
var WINDOW_THRESHOLD = MAX_WINDOW / 2;
1111
var CUSTOM_EVENTS = [
1212
'CHANNEL_EOF',

0 commit comments

Comments
 (0)