commit | 80527f5bb605ab7a50533175c611686e62fe23b6 | [log] [tgz] |
---|---|---|
author | Emeric Brun <ebrun@haproxy.com> | Mon Jun 19 17:46:37 2017 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Oct 31 13:58:31 2017 +0100 |
tree | 27b7b8ba118b3ebabc7f0f72b19b67cbeba82493 | |
parent | 1138fd0c576d8ac9ba28a57da3463de72022bea5 [diff] |
MAJOR: threads/peers: Make peers thread safe A lock is used to protect accesses to a peer structure. A the lock is taken in the applet handler when the peer is identified and released living the applet handler. In the scheduling task for peers section, the lock is taken for every listed peer and released at the end of the process task function. The peer 'force shutdown' function was also re-worked.