[Groonga-commit] groonga/express-droonga at e7f7c43 [master] receiver: use end() instead of destroy() in close()

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Jul 20 20:18:54 JST 2013


Kouhei Sutou	2013-07-20 20:18:54 +0900 (Sat, 20 Jul 2013)

  New Revision: e7f7c43cf2f9409ff61ed458724b40a40e759559
  https://github.com/groonga/express-droonga/commit/e7f7c43cf2f9409ff61ed458724b40a40e759559

  Message:
    receiver: use end() instead of destroy() in close()
    
    end() closes the socket gracefully. (end() calls destroy() internally.)

  Modified files:
    lib/backend/receiver.js

  Modified: lib/backend/receiver.js (+1 -1)
===================================================================
--- lib/backend/receiver.js    2013-07-20 19:30:58 +0900 (d06230b)
+++ lib/backend/receiver.js    2013-07-20 20:18:54 +0900 (fab96fe)
@@ -39,7 +39,7 @@ MsgPackReceiver.prototype.close = function() {
     this._messageStream = undefined;
   }
   if (this._socket) {
-    this._socket.destroy();
+    this._socket.end();
     this._socket = undefined;
   }
   if (this._server) {
-------------- next part --------------
HTML����������������������������...
Download 



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