Changing worker selection precedence.

This patch increase precedence of non-started worker over busy worker.

1. idle worker;
2. start new worker;
3. busy worker, but can accept request in advance;
This commit is contained in:
Max Romanov
2017-12-27 17:46:39 +03:00
parent 89c0f7c5db
commit ab138c9166
2 changed files with 48 additions and 23 deletions

View File

@@ -166,7 +166,7 @@ struct nxt_port_s {
/* Maximum interleave of message parts. */
uint32_t max_share;
uint32_t app_requests;
uint32_t app_pending_responses;
uint32_t app_responses;
nxt_port_handler_t handler;