[Groonga-commit] droonga/express-droonga at 6c915fe [master] Apply timeout correctly

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Apr 20 16:43:25 JST 2015


YUKI Hiroshi	2015-04-20 16:43:25 +0900 (Mon, 20 Apr 2015)

  New Revision: 6c915fe6dad70feb581ffc1944dd6aecf2742d0e
  https://github.com/droonga/express-droonga/commit/6c915fe6dad70feb581ffc1944dd6aecf2742d0e

  Message:
    Apply timeout correctly

  Modified files:
    lib/droonga-protocol/connection.js

  Modified: lib/droonga-protocol/connection.js (+1 -1)
===================================================================
--- lib/droonga-protocol/connection.js    2015-04-20 16:40:05 +0900 (906f038)
+++ lib/droonga-protocol/connection.js    2015-04-20 16:43:25 +0900 (39a6a55)
@@ -273,7 +273,7 @@ Connection.prototype.emitMessage = function(type, body, callback, options) {
       }
     }).bind(this));
 
-    if (options.timeout > -1) {
+    if (envelope.timeout > -1) {
       var timeoutMilliseconds = envelope.timeout * ONE_SECOND_IN_MILLISECONDS;
       timeoutId = setTimeout((function() {
         this._logger.trace('Connection timed out (message id: '+id+')');
-------------- next part --------------
HTML����������������������������...
Descargar 



More information about the Groonga-commit mailing list
Back to archive index