----- Original Message ----- > From: "Justin Ross" <[email protected]> > To: [email protected] > 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: [email protected] For additional commands, e-mail: [email protected]
