Ken Giusti updated PROTON-350:

    Attachment: test-recv.py

Run test-recv.py and send messages to it.  The number of messages queued 
internally by test-recv.py will grow indefinitely.  Stop the test, and modify 
test-recv.py to call messenger.rcv( 10 ), and re-run: the number of queued 
messages will block at 10.
> Messenger - pn_messenger_recv( -1 ) does not flow control senders
> -----------------------------------------------------------------
>                 Key: PROTON-350
>                 URL: https://issues.apache.org/jira/browse/PROTON-350
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>    Affects Versions: 0.4
>            Reporter: Ken Giusti
>             Fix For: 0.5
>         Attachments: test-recv.py
> When using pn_messenger_recv( -1 ), remote senders are not back-pressured, 
> and the number of messages received can grow without bounds.  It appears that 
> messenger is unconditionally granting credit as messages arrive.
> Messenger should instead only replenish credit when received messages are 
> actually consumed by the application (maybe after they are settled?).

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to