diff --git a/.travis.yml b/.travis.yml index 4ce8540e6..1c8dbf58e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ node_js: - '1.8' - '2.5' - '3.3' + - '4.2.0' # Test timers regression - '4.4' - '5.11' - '6.2' diff --git a/Changes.md b/Changes.md index 6be620188..61d62ae15 100644 --- a/Changes.md +++ b/Changes.md @@ -11,6 +11,7 @@ you spot any mistakes. * Bind underlying connections in pool to same domain as pool #1242 * Bind underlying socket to same domain as connection #1243 * Fix edge cases constructing long stack traces #1387 +* Fix handshake inactivity timeout on Node.js v4.2.0 #1223 #1236 #1239 #1240 #1241 #1252 * Fix Query stream to emit close after ending #1349 #1350 * Fix type cast for BIGINT columns when number is negative #1376 * Performance improvements for array/object escaping in SqlString #1331 diff --git a/lib/protocol/sequences/Sequence.js b/lib/protocol/sequences/Sequence.js index 8c6d877fc..5da5a39d0 100644 --- a/lib/protocol/sequences/Sequence.js +++ b/lib/protocol/sequences/Sequence.js @@ -29,7 +29,7 @@ function Sequence(options, callback) { this._idleNext = null; this._idlePrev = null; this._idleStart = null; - this._idleTimeout = undefined; + this._idleTimeout = -1; this._repeat = null; }