[
https://issues.apache.org/jira/browse/PROTON-1328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15612209#comment-15612209
]
Alan Conway commented on PROTON-1328:
-------------------------------------
More directly for your example: the timer task can directly check credit and
call send() itself. In practice I usually end up writing something like this:
try_send() { if credit>0 and have_messages(): send() }
on_sendable() { try_send() }
on_discovering_i_have_a_message() { try_send() }
> Sending two messages with 1 sender hangs
> ----------------------------------------
>
> Key: PROTON-1328
> URL: https://issues.apache.org/jira/browse/PROTON-1328
> Project: Qpid Proton
> Issue Type: Bug
> Components: python-binding
> Affects Versions: 0.14.0
> Environment: Fedora 24 using packages from F24 repos
> Reporter: Brian Bouterse
>
> Sending two messages using 1 sender with a delay between the two messages
> hangs for me. I do all of my message sending in on_sendable(). I thought that
> on_sendable() would periodically get called. I'm not sure why I think that.
> If I keep sending messages on_sendable() continues to be called, but after
> two calls without messages being sent on_sendable() stops being called.
> I have a periodic timer task that is checking for messages to be sent and so
> it can receive a message to send at any time. If the message is for an
> address which corresponds with an existing sender, that sender should be used.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]