# HG changeset patch # User jbe # Date 1435019880 -7200 # Node ID bae067af56d4ec70d0260f6c88eaa5e4e17dd2e0 # Parent db8abd21762c05cdf72d1dcedf430eafca0a3b9a Updated timeout options in example_application.lua diff -r db8abd21762c -r bae067af56d4 example_application.lua --- a/example_application.lua Tue Jun 23 02:33:12 2015 +0200 +++ b/example_application.lua Tue Jun 23 02:38:00 2015 +0200 @@ -59,10 +59,14 @@ connect = http.generate_handler( { static_headers = {"Server: Moonbridge Example Server"}, - request_body_size_limit = 16*1024*1024*1024, -- allow big file uploads - request_idle_timeout = 330, -- 5 minutes and 30 seconds after which an idle connection will be closed - request_header_timeout = 30, -- request headers must be sent within 30 seconds after first byte was received - timeout = 1800 -- request body and response must be sent within 30 minutes + request_header_size_limit = 1024*1024, -- maximum size of request headers + request_body_size_limit = 16*1024*1024*1024, -- allow big file uploads + idle_timeout = 65, -- maximum time until receiving the first byte of the request headera + stall_timeout = 60, -- maximum time a client connection may be stalled + request_header_timeout = 120, -- maximum time until receiving the remaining bytes of the request header + response_timeout = 3600, -- time in which request body and response must be sent + maximum_input_chunk_size = 16384 -- tweaks behavior of request-body parser + minimum_output_chunk_size = 1024 -- chunk size for chunked-transfer-encoding }, function(request)