Commits

Fred T-H committed 88cf960

Fixing the doc about user termination from self-ref loop

  • Participants
  • Parent commits 0eeb422

Comments (0)

Files changed (1)

 
 
 ==== gen_fsm ====
-The finite state machine acts as a manager for state. It tracks the addition and deletion of //chut_user_listen_handler//s to the user. When there are no listeners left on the user, the state machine falls into a waiting state. If no handler is added within the given time limit (determined by the supervisor), the FSM kills the supervisor, bringing down the user itself.
+The finite state machine acts as a manager for state. It tracks the addition and deletion of //chut_user_listen_handler//s to the user. When there are no listeners left on the user, the state machine falls into a waiting state. If no handler is added within the given time limit (determined when starting the supervisor), the FSM kills the supervisor by asking //chut_user_supersup// to terminate it, bringing down the user itself.
 
 This time delay allows a user with only 1 client in a browser to refresh pages and stay connected.
 
 The user as a whole can be illustrated that way:
-{{http://imgur.com/Tn9G3.png|user}}
+{{http://i.imgur.com/XglfT.png|user}}
 
 ==== Addressing ====
 Each user is thus made of 3 processes individually registered with the global module. The names used are //UserId//, //{manager, UserId}// and //{monitor, UserId}// for the supervisor, event manager and the finite state machine, respectively.