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 D7953200BB3 for ; Wed, 19 Oct 2016 00:15:31 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D6122160AFB; Tue, 18 Oct 2016 22:15:31 +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 247F0160AE5 for ; Wed, 19 Oct 2016 00:15:30 +0200 (CEST) Received: (qmail 35450 invoked by uid 500); 18 Oct 2016 22:15:30 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 35434 invoked by uid 99); 18 Oct 2016 22:15:30 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Oct 2016 22:15:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 9D926C0A88 for ; Tue, 18 Oct 2016 22:15:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -5.321 X-Spam-Level: X-Spam-Status: No, score=-5.321 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id iB-0N3scLys3 for ; Tue, 18 Oct 2016 22:15:27 +0000 (UTC) Received: from mx6-phx2.redhat.com (mx6-phx2.redhat.com [209.132.183.39]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id EEA5C5F230 for ; Tue, 18 Oct 2016 22:15:26 +0000 (UTC) Received: from zmail12.collab.prod.int.phx2.redhat.com (zmail12.collab.prod.int.phx2.redhat.com [10.5.83.14]) by mx6-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u9IMFIs6010881 for ; Tue, 18 Oct 2016 18:15:18 -0400 Date: Tue, 18 Oct 2016 18:15:18 -0400 (EDT) From: Chuck Rolke To: users@qpid.apache.org Message-ID: <901255852.9142683.1476828918269.JavaMail.zimbra@redhat.com> In-Reply-To: References: Subject: Re: Proton Python on_sendable behavior MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.10.62.170] X-Mailer: Zimbra 8.0.6_GA_5922 (ZimbraWebClient - FF49 (Linux)/8.0.6_GA_5922) Thread-Topic: Proton Python on_sendable behavior Thread-Index: zBEJEB1xIX78iihA4c5u88/vbcg1CA== archived-at: Tue, 18 Oct 2016 22:15:32 -0000 ----- Original Message ----- > From: "Justin Ross" > To: users@qpid.apache.org > Sent: Tuesday, October 18, 2016 5:13:27 PM > Subject: Proton Python on_sendable behavior > > https://gist.github.com/ssorj/1ccf4d1499563722bc419f1e1fac11bf > > In this example, there is still ample credit on the link after the last > on_sendable() is printed, but on_sendable is never fired again. Is that > expected behavior? > > It appears that on_link_flow is only fired when link credit is updated, and > on_link_flow is the source of all on_sendable events. > > https://github.com/apache/qpid-proton/blob/master/proton-c/bindings/python/proton/handlers.py#L36 > When I run this code all messages go to the broker in one frame and the flow and dispositions come back in one frame: Frame 46 127.0.0.1:60006 -> 127.0.0.1:5672 -> transfer [0,0] (0..9) Frame 47 127.0.0.1:60006 <- 127.0.0.1:5672 <- flow [0,0] (10,500), disposition [0] (receiver 0-9) You have credit and just got some on_sendable callbacks. What's wrong with what you see? --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org For additional commands, e-mail: users-help@qpid.apache.org