qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordon Sim <g...@redhat.com>
Subject Re: [proton-j] handling of link-credit
Date Wed, 01 Mar 2017 17:49:22 GMT
On 01/03/17 17:19, Robbie Gemmell wrote:
> How did you know they had actually stopped or that it was then safe to
> flow them new credit, just waiting for a while?
>
> If you flow new credit before the link is actually stopped you need to
> cope with that fairly specifically in case they hadnt really stopped.
 >
> There is scope for things to get out of whack otherwise, on both ends,
> as they need to carefully handle the delivery-count and credit based
> on what occurs and whether they have already exceeded the previous
> allowances or not when the updates get sent/arrive.

The link credit is an absolute value. Setting it to 0 then to some other 
value should be no different that e.g. setting it to 100, then resetting 
it to 200 before the first flow is known to have been processed by the 
sender. The latest value indicated by the receiver is the valid value.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Mime
View raw message