PROTON-1175: Document BlockingConnection resource cleanup
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/2449169b Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/2449169b Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/2449169b Branch: refs/heads/master Commit: 2449169bba068111b90955dcfbedf4f4554305a7 Parents: 4657d9f Author: Justin Ross <jr...@apache.org> Authored: Wed Aug 16 16:07:45 2017 -0700 Committer: Justin Ross <jr...@apache.org> Committed: Thu Aug 17 16:19:11 2017 -0700 ---------------------------------------------------------------------- proton-c/bindings/python/proton/utils.py | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/2449169b/proton-c/bindings/python/proton/utils.py ---------------------------------------------------------------------- diff --git a/proton-c/bindings/python/proton/utils.py b/proton-c/bindings/python/proton/utils.py index d0679ae..13f29a7 100644 --- a/proton-c/bindings/python/proton/utils.py +++ b/proton-c/bindings/python/proton/utils.py @@ -200,6 +200,11 @@ class ConnectionClosed(ConnectionException): class BlockingConnection(Handler): """ A synchronous style connection wrapper. + + This object's implementation uses OS resources. To ensure they + are released when the object is no longer in use, make sure that + object operations are enclosed in a try block and that close() is + always executed on exit. """ def __init__(self, url, timeout=None, container=None, ssl_domain=None, heartbeat=None, **kwargs): self.disconnected = False --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org