560daa1 RESPONDER: Change how client timeout is calculated

2 files Authored by fidencio 7 years ago, Committed by lslebodn 7 years ago,
    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>