Don't cork
This commit is contained in:
parent
0bf3031d9f
commit
a1c9d8538f
|
@ -464,7 +464,6 @@ exports.getModule = class TransferFileModule extends MenuModule {
|
||||||
}
|
}
|
||||||
|
|
||||||
// at least one double (escaped) IAC
|
// at least one double (escaped) IAC
|
||||||
externalProc._socket.cork();
|
|
||||||
let lastPos = 0;
|
let lastPos = 0;
|
||||||
while (iacPos > -1) {
|
while (iacPos > -1) {
|
||||||
let rem = iacPos - lastPos;
|
let rem = iacPos - lastPos;
|
||||||
|
@ -478,7 +477,6 @@ exports.getModule = class TransferFileModule extends MenuModule {
|
||||||
if (lastPos < data.length) {
|
if (lastPos < data.length) {
|
||||||
externalProc.write(data.slice(lastPos));
|
externalProc.write(data.slice(lastPos));
|
||||||
}
|
}
|
||||||
externalProc._socket.uncork();
|
|
||||||
// const tmp = data.toString('binary').replace(/\xff{2}/g, '\xff'); // de-escape
|
// const tmp = data.toString('binary').replace(/\xff{2}/g, '\xff'); // de-escape
|
||||||
// externalProc.write(Buffer.from(tmp, 'binary'));
|
// externalProc.write(Buffer.from(tmp, 'binary'));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue