[
https://issues.apache.org/jira/browse/PROTON-17?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gordon Sim updated PROTON-17:
-----------------------------
Attachment: PROTON-17.patch
Suggested fix
> pn_drain(link, 0) doesn't trigger issuing of flow
> -------------------------------------------------
>
> Key: PROTON-17
> URL: https://issues.apache.org/jira/browse/PROTON-17
> Project: Qpid Proton
> Issue Type: Bug
> Components: proton-c
> Reporter: Gordon Sim
> Attachments: PROTON-17.patch
>
>
> In implementing a timed synchronous get, I issue one unit of credit, wait for
> the time specified, then I want to drain that credit in order to
> unambiguously determine if a message arrived or not. I don't want to
> increase the credit so in calling pn_drain() I want the second parameter to
> be 0. However doing so fails to trigger a new flow to be sent (with the drain
> flag set). Using a non-zero credit value, i.e. increasing the credit, does
> trigger the flow.
--
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