YUKI Hiroshi
null+****@clear*****
Fri Oct 17 16:36:55 JST 2014
YUKI Hiroshi 2014-10-17 16:36:55 +0900 (Fri, 17 Oct 2014) New Revision: 18e5d4dd57b9210505778bf6e02fbc8acaa0ace4 https://github.com/droonga/express-droonga/commit/18e5d4dd57b9210505778bf6e02fbc8acaa0ace4 Message: Add a method to close all connections Modified files: lib/droonga-protocol/connections.js Modified: lib/droonga-protocol/connections.js (+7 -0) =================================================================== --- lib/droonga-protocol/connections.js 2014-10-17 16:34:20 +0900 (11badd4) +++ lib/droonga-protocol/connections.js 2014-10-17 16:36:55 +0900 (b2ce82c) @@ -56,6 +56,13 @@ Connections.prototype = { this._nextIndex = 0; return this._connections[hostName]; + }, + + closeAll: function() { + this._params.hostNames.forEach(function(hostName) { + var connection = this._connections[hostName]; + connection.close(); + }, this); } }; -------------- next part -------------- HTML����������������������������...Download