]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
login-common: Optimize kicking proxy connections by username
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 11 Jan 2022 09:40:27 +0000 (11:40 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 8 Feb 2022 09:48:24 +0000 (10:48 +0100)
commit65d84587210357a052dd1473cffff3f244d8d702
tree4d9c98d2fdac93b4c1aa4d1553be703154e3a9f2
parent90243883fbb808359bb61548bce6291637a93cbd
login-common: Optimize kicking proxy connections by username

Track proxy connections by username in a hash table. Kicking only needs to
do a hash lookup from there to find the user's all sessions. Only detached
proxies are tracked this way. It's likely not worth the trouble to track
non-detached pending proxies in this way, since normally there shouldn't be
many of them.
src/login-common/login-proxy.c