-
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: - Added support for using WBEMListener as a context manager that ensures that the listener is stopped when leaving its scope. - Improved the exception message that occurs when listener port is in use. - Added `http_started` and `https_started` properties to WBEMListener, that indicate whether the listener is started for the respective port. - Docs: - Clarified that listener must be stopped to release the TCP/IP port. - Outdented comments in example to right level. - Removed WBEMServer code from example. - Added example for using WBEMListener as a context manager. - Test: - Added test case for listener port in use. - Added test case for using WBEMListener as a context manager. - 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. Signed-off-by: Andreas Maier <maiera@de.ibm.com>
- Loading branch information
1 parent
5f225a4
commit 7bf40ac
Showing
2 changed files
with
157 additions
and
31 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