On 01/02/2013 16:12, Joakim Erdfelt wrote:
> I disagree with this statement ...
>
> RemoteEndpoint.sendStringByCompletion("hello", cb);
>
> cb completes immediately because the message fits into the
> container's buffer.
>
>
> The CB (aka SendHandler) should not be triggered on entering a internal
> container buffer.
> It should only be triggered when all of the frames that make up that
> message have been written out the network connection only.
We are not discussing the normal use case here. We are talking about
when the optional batching has been enabled. The CH has to be triggered
so they app knows it can send another message.
I agree with everything you said (and I don't think anyone disagrees
with you) for the case when batching is disabled.
Mark