diff options
author | Max Romanov <max.romanov@nginx.com> | 2017-12-27 17:48:04 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2017-12-27 17:48:04 +0300 |
commit | 5196cf4d5003dade99321f71bcc1af80f0e5ad50 (patch) | |
tree | 7e087e5135793b55922082f18a84b387832cac63 /src/nxt_conf_validation.c | |
parent | baa8c9387b00dc3cd72cfca14c61c25a2badada9 (diff) | |
download | unit-5196cf4d5003dade99321f71bcc1af80f0e5ad50.tar.gz unit-5196cf4d5003dade99321f71bcc1af80f0e5ad50.tar.bz2 |
Rescheduling of pending request after configured timeout.
New optional configuration parameter introduced: limits.reschedule_timeout.
Default value 1 second. In the case when request is written to the port
socket 'in advance', it is called 'pending'.
On every completed request, the head of pending request is checked against
reschedule timeout. If this request waiting for execution longer than
timeout, it is cancelled, new port selected for this request.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_conf_validation.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nxt_conf_validation.c b/src/nxt_conf_validation.c index cc2ce5ef..05d0a021 100644 --- a/src/nxt_conf_validation.c +++ b/src/nxt_conf_validation.c @@ -78,6 +78,11 @@ static nxt_conf_vldt_object_t nxt_conf_vldt_app_limits_members[] = { NULL, NULL }, + { nxt_string("reschedule_timeout"), + NXT_CONF_INTEGER, + NULL, + NULL }, + { nxt_string("requests"), NXT_CONF_INTEGER, NULL, |