File tree 2 files changed +9
-2
lines changed 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
4
4
to add your changes here when sending pull requests. Also send corrections if
5
5
you spot any mistakes.
6
6
7
+ ## HEAD
8
+
9
+ * Small performance improvement starting command sequence
10
+
7
11
## v2.16.0 (2018-07-17)
8
12
9
13
* 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) {
167
167
err . timeout = sequence . _timeout ;
168
168
169
169
self . _delegateError ( err , sequence ) ;
170
- } )
171
- . on ( 'start-tls' , function ( ) {
170
+ } ) ;
171
+
172
+ if ( sequence . constructor === Sequences . Handshake ) {
173
+ sequence . on ( 'start-tls' , function ( ) {
172
174
sequence . _timer . active ( ) ;
173
175
self . _connection . _startTLS ( function ( err ) {
174
176
if ( err ) {
@@ -183,6 +185,7 @@ Protocol.prototype._enqueue = function(sequence) {
183
185
sequence . _tlsUpgradeCompleteHandler ( ) ;
184
186
} ) ;
185
187
} ) ;
188
+ }
186
189
187
190
if ( this . _queue . length === 1 ) {
188
191
this . _parser . resetPacketNumber ( ) ;
You can’t perform that action at this time.
0 commit comments