[Groonga-commit] groonga/fluent-plugin-groonga at 4a1565c [master] Ensure waiting write back is completed to client

Back to archive index

Kouhei Sutou null+****@clear*****
Tue May 2 14:03:48 JST 2017


Kouhei Sutou	2017-05-02 14:03:48 +0900 (Tue, 02 May 2017)

  New Revision: 4a1565c33624fbe50dc23bc978696a76d2fa8019
  https://github.com/groonga/fluent-plugin-groonga/commit/4a1565c33624fbe50dc23bc978696a76d2fa8019

  Message:
    Ensure waiting write back is completed to client

  Modified files:
    lib/fluent/plugin/in_groonga.rb

  Modified: lib/fluent/plugin/in_groonga.rb (+3 -1)
===================================================================
--- lib/fluent/plugin/in_groonga.rb    2017-05-02 13:52:45 +0900 (a7ef105)
+++ lib/fluent/plugin/in_groonga.rb    2017-05-02 14:03:48 +0900 (177075f)
@@ -75,7 +75,9 @@ module Fluent
             handler.write_back(data)
           end
           repeater.on_close do
-            handler.close
+            connection.on(:write_complete) do
+              handler.close
+            end
           end
           event_loop_attach(repeater)
 
-------------- next part --------------
HTML����������������������������...
다운로드 



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