2014-12-08 21:18 GMT+01:00 Mark Thomas <ma...@apache.org>:

> On 04/12/2014 14:04, Rémy Maucherat wrote:
> > 2014-12-04 14:58 GMT+01:00 Mark Thomas <ma...@apache.org>:
> >
> >> Shouldn't there still be a single empty message in that case? Otherwise,
> >> how is the client meant to differentiate between no write and a write of
> >> zero length?
> >>
> > The problem I am trying to fix is extra empty messages when the writer is
> > not actually used (due to an error), so I might as well not do anything.
>
> I understand what you are trying to do but I'm still trying to
> understand the circumstances that lead this situation. Can you provide
> some more detail on what triggers the error?
>
> A test expects some data in a message following an exception, and instead
gets an empty message first due to some writer mechanics (sent because the
writer is closed). The spec doesn't say anything about these empty
messages, so there is no reason to send them, it is not actually an
optimization.

Rémy

Reply via email to