Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 78FE520049E for ; Thu, 10 Aug 2017 14:28:29 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 775F516B352; Thu, 10 Aug 2017 12:28:29 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BDD2F16B351 for ; Thu, 10 Aug 2017 14:28:28 +0200 (CEST) Received: (qmail 38114 invoked by uid 500); 10 Aug 2017 12:28:27 -0000 Mailing-List: contact commits-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@qpid.apache.org Delivered-To: mailing list commits@qpid.apache.org Received: (qmail 38105 invoked by uid 99); 10 Aug 2017 12:28:27 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Aug 2017 12:28:27 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D0668E96B4; Thu, 10 Aug 2017 12:28:27 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: jross@apache.org To: commits@qpid.apache.org Message-Id: <82a5966003c04309a36c512d4b305e4f@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: qpid-proton git commit: PROTON-1506: Expose max frame size in the python binding; thanks to Gordon Sim for the patch Date: Thu, 10 Aug 2017 12:28:27 +0000 (UTC) archived-at: Thu, 10 Aug 2017 12:28:29 -0000 Repository: qpid-proton Updated Branches: refs/heads/master 4d25d88f5 -> 9eaca615c PROTON-1506: Expose max frame size in the python binding; thanks to Gordon Sim for the patch Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/9eaca615 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/9eaca615 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/9eaca615 Branch: refs/heads/master Commit: 9eaca615c5f5aa97d89d1b87471d81bff7237df0 Parents: 4d25d88 Author: Justin Ross Authored: Thu Aug 10 05:27:43 2017 -0700 Committer: Justin Ross Committed: Thu Aug 10 05:27:43 2017 -0700 ---------------------------------------------------------------------- proton-c/bindings/python/proton/reactor.py | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/9eaca615/proton-c/bindings/python/proton/reactor.py ---------------------------------------------------------------------- diff --git a/proton-c/bindings/python/proton/reactor.py b/proton-c/bindings/python/proton/reactor.py index 4beede0..7b7c701 100644 --- a/proton-c/bindings/python/proton/reactor.py +++ b/proton-c/bindings/python/proton/reactor.py @@ -543,6 +543,7 @@ class Connector(Handler): self.password = None self.virtual_host = None self.ssl_sni = None + self.max_frame_size = None def _connect(self, connection, reactor): assert(reactor is not None) @@ -575,6 +576,8 @@ class Connector(Handler): raise SSLUnavailable("amqps: SSL libraries not found") self.ssl = SSL(transport, self.ssl_domain) self.ssl.peer_hostname = self.ssl_sni or self.virtual_host or url.host + if self.max_frame_size: + transport.max_frame_size = self.max_frame_size def on_connection_local_open(self, event): self._connect(event.connection, event.reactor) @@ -735,6 +738,7 @@ class Container(Reactor): # only set hostname if virtual-host is a non-empty string conn.hostname = connector.virtual_host connector.ssl_sni = kwargs.get('sni') + connector.max_frame_size = kwargs.get('max_frame_size') conn._overrides = connector if url: connector.address = Urls([url]) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org For additional commands, e-mail: commits-help@qpid.apache.org