[Groonga-commit] ranguba/chupa-text at 816c78f [master] http-server: reduce timeout in server

Back to archive index
Sutou Kouhei null+****@clear*****
Thu Jun 13 17:01:59 JST 2019


Sutou Kouhei	2019-06-13 17:01:59 +0900 (Thu, 13 Jun 2019)

  Revision: 816c78fa5abb55a31bbec4ca6b5fbd1d2b577150
  https://github.com/ranguba/chupa-text/commit/816c78fa5abb55a31bbec4ca6b5fbd1d2b577150

  Message:
    http-server: reduce timeout in server

  Modified files:
    lib/chupa-text/decomposers/http-server.rb

  Modified: lib/chupa-text/decomposers/http-server.rb (+1 -1)
===================================================================
--- lib/chupa-text/decomposers/http-server.rb    2019-06-13 17:01:16 +0900 (ef9ad3d)
+++ lib/chupa-text/decomposers/http-server.rb    2019-06-13 17:01:59 +0900 (6ce5544)
@@ -60,7 +60,7 @@ module ChupaText
         http = Net::HTTP.new(url.host, url.port)
         http.use_ssl = true if url.is_a?(URI::HTTPS)
         if data.timeout.is_a?(Numeric)
-          timeout = data.timeout * 1.5
+          timeout = data.timeout * 0.9
           http.open_timeout = timeout
           http.read_timeout = timeout
           http.write_timeout = timeout if http.respond_to?(:write_timeout=)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190613/f67a2892/attachment-0001.html>


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