commit | dbda31939dd3c775adb48ceeadbda89e42a25390 | [log] [tgz] |
---|---|---|
author | Olivier Houchard <cognet@ci0.org> | Sun Mar 22 19:59:52 2020 +0100 |
committer | Olivier Houchard <cognet@ci0.org> | Sun Mar 22 20:05:59 2020 +0100 |
tree | 1c0d1d525a85f699e279de5d0b9f9390027b0c2c | |
parent | 3c49c1bd5ce1b47baa63d3c4058437e341389d98 [diff] |
BUG/MINOR: connections: Set idle_time before adding to idle list. In srv_add_to_idle_list(), make sure we set the idle_time before we add the connection to an idle list, not after, otherwise another thread may grab it, set the idle_time to 0, only to have the original thread set it back to now_ms. This may have an impact, as in conn_free() we check idle_time to decide if we should decrement the idle connection counters for the server.