Skip to content

Commit 5c7ec13

Browse files
author
Chad Berchek
committed
Fix backpressure when using TLS; affects streaming result set and load data local
1 parent 09c2068 commit 5c7ec13

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/connection.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,9 +382,7 @@ class Connection extends EventEmitter {
382382
secureSocket.on('data', data => {
383383
this.packetParser.execute(data);
384384
});
385-
this.write = buffer => {
386-
secureSocket.write(buffer);
387-
};
385+
this.stream = secureSocket;
388386
// start TLS communications
389387
secureSocket._start();
390388
}

0 commit comments

Comments
 (0)