Skip to content

core: Rework session timeout

Valentin Valls requested to merge fix-timeout into main
  • Use >= to be sure the timeout is executed at some point
  • Use a fixed start time to avoid time shift
  • Use instance attribute, not class attribute
  • Make sure the stop function stop the greenlet without exception

I maybe misunderstand the logic of the loop, but now

  • Loop until there is a timeout setup
  • Or until the timeout and send event if the session is still there
Edited by Valentin Valls

Merge request reports