[Groonga-commit] ranguba/gqtp at 12cdb62 [master] Don't require ACK response

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Dec 16 18:36:47 JST 2013


Kouhei Sutou	2013-12-16 18:36:47 +0900 (Mon, 16 Dec 2013)

  New Revision: 12cdb62605bce5797d38aa09ceb9498073574dd9
  https://github.com/ranguba/gqtp/commit/12cdb62605bce5797d38aa09ceb9498073574dd9

  Message:
    Don't require ACK response

  Modified files:
    lib/gqtp/client.rb

  Modified: lib/gqtp/client.rb (+4 -1)
===================================================================
--- lib/gqtp/client.rb    2013-10-14 10:12:38 +0900 (ea37c23)
+++ lib/gqtp/client.rb    2013-12-16 18:36:47 +0900 (5a64721)
@@ -88,7 +88,10 @@ module GQTP
       sync = !block_given?
       sequential_request = SequentialRequest.new
       quit_request = send("quit", :header => header_for_close) do
-        ack_request = send("ACK", :header => header_for_close) do
+        ack_body = "ACK"
+        ack_header = header_for_close
+        ack_header.size = ack_body.bytesize
+        ack_request =****@conne*****(ack_header.pack, ack_body) do
           @connection.close
           yield if block_given?
         end
-------------- next part --------------
HTML����������������������������...
Download 



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