base64 changes

This commit is contained in:
2021-06-06 01:51:35 -05:00
parent 806363a1c9
commit c2afa74ad8
4 changed files with 10 additions and 3 deletions

View File

@@ -60,6 +60,13 @@ export default class connection {
this.cleanup_handlers();
buffer = null;
};
if (this.socket._socket) {
this.socket._socket.setNoDelay(true);
this.socket._socket.setKeepAlive(true);
} else {
this.socket.setNoDelay(true);
this.socket.setKeepAlive(true);
}
this.socket.on('data', (chunk) => {
buffer = buffer ? Buffer.concat([buffer, chunk]) : chunk;