-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not log out session in xapi events loop to re-register VMs
The session.logout was used to interrupt the call to `event.from`, so that is can be called again with a new list of VMs to watch, in case a VM started, stopped etc. The trouble is, that each such re-register event led to SESSION_INVALID being logged, with stack trace, three times. This caused many people looking at the logs unnecessary worries, while in reality the behaviour is completely normal. This replaces the register mechanism by adding the event loop's task into the watch list for `event.from`, and injecting an event on the task to interrupt the call and recompute the VM list. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
- Loading branch information
Showing
1 changed file
with
33 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters