-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements for port in use handling and other cleanup in listener
Details: - Docs: Clarified that listener must be stopped when restarting it or creating a second listener on same port, to avoid port address in use error. - Added support for context manager to WBEMListener class, which upon exit ensures that listener is stopped. - Improved the exception message that occurs when listener port is in use. - Added test cases for listener port in use. - Cleaned up the test method `send_indications()` to remove the unused `https_port` argument. - Moved printing of sent indications in test method to be done only when VERBOSE is set. - Docs: Outdented comments in example to right level. Signed-off-by: Andreas Maier <maiera@de.ibm.com>
- Loading branch information
1 parent
5f225a4
commit ebdee43
Showing
2 changed files
with
100 additions
and
17 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
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