On 02/08/2013 01:44 PM, Mark Thomas wrote:
> The way I implemented this in Tomcat was to use a small local buffer
> and write to that. When that fills up send a message fragment (without
> the FIN bit set) and when the Stream / Writer is closed flush whatever
> is left in the buffer with the FIN bit set. I have this sat on my
> local drive waiting for some test cases to be written before I commit
> it. I should be in a position to do that later today. Mark
In the end, I think it can be compared with HTTP chunking (with an end
chunk at the end). The application sends its message, but is not dealing
with how it is encoded into fragments.
Rémy