mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-15 03:54:11 +02:00
MINOR: server: replace the pendconns-related stuff with a struct queue
Just like for proxies, all three elements (pendconns, nbpend, queue_idx) were moved to struct queue.
This commit is contained in:
@@ -87,7 +87,7 @@ static inline int server_has_room(const struct server *s) {
|
||||
* for and if/else usage.
|
||||
*/
|
||||
static inline int may_dequeue_tasks(const struct server *s, const struct proxy *p) {
|
||||
return (s && (s->nbpend || (p->queue.length && srv_currently_usable(s))) &&
|
||||
return (s && (s->queue.length || (p->queue.length && srv_currently_usable(s))) &&
|
||||
(!s->maxconn || s->cur_sess < srv_dynamic_maxconn(s)));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user