Skip to content

Commit f98951d

Browse files
committed
NODE-864 close event not emits during network issues using single server topology
1 parent 9f5fd14 commit f98951d

File tree

3 files changed

+26
-5
lines changed

3 files changed

+26
-5
lines changed

HISTORY.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
2.2.12 2016-10-21
2+
-----------------
3+
* Updated mongodb-core to 2.0.14.
4+
* Updated bson library to 0.5.7.
5+
* Dont leak connection.workItems elments when killCursor is called (Issue #150, https://github.com/mdlavin).
6+
* Remove unnecessary errors formatting (Issue #149, https://github.com/akryvomaz).
7+
* Only check isConnected against availableConnections (Issue #142).
8+
* NODE-838 Provide better error message on failed to connect on first retry for Mongos topology.
9+
* Set default servername to host is not passed through for sni.
10+
* Made monitoring happen on exclusive connection and using connectionTimeout to handle the wait time before failure (Issue #148).
11+
* NODE-859 Make minimum value of maxStalenessSeconds 90 seconds.
12+
* NODE-852 Fix Kerberos module deprecations on linux and windows and release new kerberos version.
13+
* NODE-850 Update Max Staleness implementation.
14+
* NODE-849 username no longer required for MONGODB-X509 auth.
15+
* NODE-848 BSON Regex flags must be alphabetically ordered.
16+
* NODE-846 Create notice for all third party libraries.
17+
* NODE-843 Executing bulk operations overwrites write concern parameter.
18+
* NODE-842 Re-sync SDAM and SDAM Monitoring tests from Specs repo.
19+
* NODE-840 Resync CRUD spec tests.
20+
* Unescapable while(true) loop (Issue #152).
21+
* NODE-864 close event not emits during network issues using single server topology.
22+
123
2.2.11 2016-10-21
224
-----------------
325
* Updated mongodb-core to 2.0.13.

lib/server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,11 @@ Server.prototype.connect = function(db, _options, callback) {
296296
});
297297

298298
// Set up listeners
299-
self.s.server.once('timeout', errorHandler('timeout'));
299+
self.s.server.on('timeout', errorHandler('timeout'));
300300
self.s.server.once('error', errorHandler('error'));
301301
self.s.server.on('close', errorHandler('close'));
302302
// Only called on destroy
303-
self.s.server.once('destroy', destroyHandler);
303+
self.s.server.on('destroy', destroyHandler);
304304

305305
// relay the event
306306
var relay = function(event) {

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mongodb",
3-
"version": "2.2.11",
3+
"version": "2.2.12",
44
"description": "The official MongoDB driver for Node.js",
55
"main": "index.js",
66
"repository": {
@@ -14,8 +14,7 @@
1414
],
1515
"dependencies": {
1616
"es6-promise": "3.2.1",
17-
"mongodb-core": "2.0.13",
18-
"mongodb-core": "christkv/mongodb-core#2.0",
17+
"mongodb-core": "2.0.14",
1918
"readable-stream": "2.1.5"
2019
},
2120
"devDependencies": {

0 commit comments

Comments
 (0)