moonbridge
changeset 222:bae067af56d4
Updated timeout options in example_application.lua
author | jbe |
---|---|
date | Tue Jun 23 02:38:00 2015 +0200 (2015-06-23) |
parents | db8abd21762c |
children | d544e8379691 |
files | example_application.lua |
line diff
1.1 --- a/example_application.lua Tue Jun 23 02:33:12 2015 +0200 1.2 +++ b/example_application.lua Tue Jun 23 02:38:00 2015 +0200 1.3 @@ -59,10 +59,14 @@ 1.4 connect = http.generate_handler( 1.5 { 1.6 static_headers = {"Server: Moonbridge Example Server"}, 1.7 - request_body_size_limit = 16*1024*1024*1024, -- allow big file uploads 1.8 - request_idle_timeout = 330, -- 5 minutes and 30 seconds after which an idle connection will be closed 1.9 - request_header_timeout = 30, -- request headers must be sent within 30 seconds after first byte was received 1.10 - timeout = 1800 -- request body and response must be sent within 30 minutes 1.11 + request_header_size_limit = 1024*1024, -- maximum size of request headers 1.12 + request_body_size_limit = 16*1024*1024*1024, -- allow big file uploads 1.13 + idle_timeout = 65, -- maximum time until receiving the first byte of the request headera 1.14 + stall_timeout = 60, -- maximum time a client connection may be stalled 1.15 + request_header_timeout = 120, -- maximum time until receiving the remaining bytes of the request header 1.16 + response_timeout = 3600, -- time in which request body and response must be sent 1.17 + maximum_input_chunk_size = 16384 -- tweaks behavior of request-body parser 1.18 + minimum_output_chunk_size = 1024 -- chunk size for chunked-transfer-encoding 1.19 }, 1.20 function(request) 1.21