From 5c7ec13a915ce13958910484623f88af382ba738 Mon Sep 17 00:00:00 2001 From: Chad Berchek Date: Fri, 15 Apr 2022 14:21:01 -0500 Subject: [PATCH] Fix backpressure when using TLS; affects streaming result set and load data local --- lib/connection.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/connection.js b/lib/connection.js index 44da168e1f..b95f400f95 100644 --- a/lib/connection.js +++ b/lib/connection.js @@ -382,9 +382,7 @@ class Connection extends EventEmitter { secureSocket.on('data', data => { this.packetParser.execute(data); }); - this.write = buffer => { - secureSocket.write(buffer); - }; + this.stream = secureSocket; // start TLS communications secureSocket._start(); }