File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ This file is a manually maintained list of changes for each release. Feel free
44to add your changes here when sending pull requests. Also send corrections if
55you spot any mistakes.
66
7+ ## HEAD
8+
9+ * Small performance improvement starting command sequence
10+
711## v2.16.0 (2018-07-17)
812
913* Add Amazon RDS GovCloud SSL certificates #1876
Original file line number Diff line number Diff line change @@ -167,8 +167,10 @@ Protocol.prototype._enqueue = function(sequence) {
167167 err . timeout = sequence . _timeout ;
168168
169169 self . _delegateError ( err , sequence ) ;
170- } )
171- . on ( 'start-tls' , function ( ) {
170+ } ) ;
171+
172+ if ( sequence . constructor === Sequences . Handshake ) {
173+ sequence . on ( 'start-tls' , function ( ) {
172174 sequence . _timer . active ( ) ;
173175 self . _connection . _startTLS ( function ( err ) {
174176 if ( err ) {
@@ -183,6 +185,7 @@ Protocol.prototype._enqueue = function(sequence) {
183185 sequence . _tlsUpgradeCompleteHandler ( ) ;
184186 } ) ;
185187 } ) ;
188+ }
186189
187190 if ( this . _queue . length === 1 ) {
188191 this . _parser . resetPacketNumber ( ) ;
You can’t perform that action at this time.
0 commit comments