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.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user