Skip to content

Commit 2c16030

Browse files
committed
Fix handshake inactivity timeout on Node.js v4.2.0
fixes #1223 fixes #1236 fixes #1239 fixes #1240 fixes #1241 fixes #1252
1 parent bf958d0 commit 2c16030

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ node_js:
77
- '1.8'
88
- '2.5'
99
- '3.3'
10+
- '4.2.0' # Test timers regression
1011
- '4.4'
1112
- '5.11'
1213
- '6.2'

Changes.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ you spot any mistakes.
1111
* Bind underlying connections in pool to same domain as pool #1242
1212
* Bind underlying socket to same domain as connection #1243
1313
* Fix edge cases constructing long stack traces #1387
14+
* Fix handshake inactivity timeout on Node.js v4.2.0 #1223 #1236 #1239 #1240 #1241 #1252
1415
* Fix Query stream to emit close after ending #1349 #1350
1516
* Fix type cast for BIGINT columns when number is negative #1376
1617
* Performance improvements for array/object escaping in SqlString #1331

lib/protocol/sequences/Sequence.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function Sequence(options, callback) {
2929
this._idleNext = null;
3030
this._idlePrev = null;
3131
this._idleStart = null;
32-
this._idleTimeout = undefined;
32+
this._idleTimeout = -1;
3333
this._repeat = null;
3434
}
3535

0 commit comments

Comments
 (0)