summaryrefslogtreecommitdiffstats
path: root/src/monitor
diff options
context:
space:
mode:
authorFabiano Fidêncio <fidencio@redhat.com>2016-11-30 16:00:33 +0100
committerLukas Slebodnik <lslebodn@redhat.com>2017-01-23 18:46:37 +0100
commit560daa14ef013aa14e2aedeea10b07f623d84ec8 (patch)
treea98a5df150b1bf36ff3b70458ec4f50ab59ce902 /src/monitor
parent151a6de4793e0045a7085d4d72b975947662e566 (diff)
downloadsssd-560daa14ef013aa14e2aedeea10b07f623d84ec8.tar.gz
sssd-560daa14ef013aa14e2aedeea10b07f623d84ec8.tar.xz
sssd-560daa14ef013aa14e2aedeea10b07f623d84ec8.zip
RESPONDER: Change how client timeout is calculated
Taking Pavel Březina's suggestion, let's avoid always re-creating the idle timer and go for a simpler and not so precise approach where we store the time of the last operation done and then have a simple periodic timer that fires each "client_idle_time/2" and there it checks whether the "current time - last request time > client_idle_time". As said, it won't be as precise as the way done currently but it will save us lots of memory operations. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/monitor')
0 files changed, 0 insertions, 0 deletions