Skip to content

Commit

Permalink
Channel: increase max window size
Browse files Browse the repository at this point in the history
This matches OpenSSH's implementation.
  • Loading branch information
mscdex committed Jun 30, 2019
1 parent bf8ad96 commit 2283929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 2283929

Please sign in to comment.