Thinのコード/ドキュメントでは、デフォルトの接続タイムアウトは30秒であることが示されています。ただし、これをテストしようとすると、機能しないようです。私は何が欠けていますか?
シンv1.5.0(最新)を使用しています。
# Test this using: curl -X GET http://localhost:3000/test. You will find that the request does not
# timeout after 30s.
require 'thin'
class SimpleAdapter
def call(env)
sleep 100
body = ["hello!"]
[
200,
{ 'Content-Type' => 'text/plain' },
body
]
end
end
server = Thin::Server.new('127.0.0.1', 3000) do
map '/test' do
run SimpleAdapter.new
end
end
server.start!