commit | 140237471e408736bb7162e68c572c710a66a526 | [log] [tgz] |
---|---|---|
author | Olivier Houchard <cognet@ci0.org> | Mon Dec 30 18:15:40 2019 +0100 |
committer | Olivier Houchard <cognet@ci0.org> | Mon Dec 30 18:18:28 2019 +0100 |
tree | d1acba2fa6f5dce533bf522ac84ebc222429b8f7 | |
parent | 37d7897aafc412f3c4a4a68a1dccbd6b5d6cb180 [diff] |
BUG/MEDIUM: connections: Hold the lock when wanting to kill a connection. In connect_server(), when we decide we want to kill the connection of another thread because there are too many idle connections, hold the toremove_lock of the corresponding thread, othervise, there's a small race condition where we could try to add the connection to the toremove_connections list while it has already been free'd. This should be backported to 2.0 and 2.1.