commit | c7eedf7a5a8992c911c6004fb3983afb45ef428d | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Oct 21 11:31:12 2020 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Oct 22 17:32:28 2020 +0200 |
tree | 96b55bcfbc95217a8fbbd9140a77dcae3459692a | |
parent | 3e3ae2524d57b1424ae2368bef6cf77a5a79b647 [diff] |
MINOR: queue: reduce the locked area in pendconn_add() Similarly to previous changes, we know if we're dealing with a server or proxy lock so let's directly lock at the finest possible places there. It's worth noting that a part of the operation consisting in an increment and update of a max could be done outside of the lock using atomic ops and a CAS.