summaryrefslogtreecommitdiff
path: root/assoc.c
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2020-11-12 17:34:29 -0800
committerdormando <dormando@rydia.net>2020-11-12 17:34:29 -0800
commit2896cc6c49c2bcd064e00da8bdf0dcaf1a481e73 (patch)
tree879a97be4c49e94d02f29ca82dcfdba34b82408c /assoc.c
parent2251d98cd7ecb7dd4b2f58fe9b97f5799eb39edc (diff)
downloadmemcached-2896cc6c49c2bcd064e00da8bdf0dcaf1a481e73.tar.gz
idle_timeout: avoid long hangs during shutdown
the idle thread would sleep for up to the max timeout given before checking for active connections again. the new shutdown code waits on threads to be joined after a shutdown signal, which could end up hanging by the idle_timeout. this now instead uses a cond_timedwait call to allow a condition signal to wake up the thread to exit. this should be done for a few other threads that sleep without conditions (lru_maintainer?)
Diffstat (limited to 'assoc.c')
0 files changed, 0 insertions, 0 deletions