>>  Ideally it should be either the Content-Length or if Chunked then we'll
>>  have to read until the end of chunks. So, if you see Content-Length,
>> then
>>  no need to calculate size while parsing. You already know it. But, your
>>  proposal is valid for the Chunked case.
> I'm talking about calculating the size for a individual MIME part.. I
> think I made it clear (+how we do it in Axis2/java) at the beginning
> of this thread... Probably you need to reread this thread.

Yep, true. The point is, as I said earlier, several small attachments ==
one big attachment. Thus, Buffering will have to happen anyway, if the
Content-Length exceeds the threshold rather than a single attachment
exceeding the threshold.

>
>>  That will cause the stream to exhaust for the lifetime of the request
>>  isn't it? If not can you explain the procedure?
> It works for StAX xml parsing and for axis2/java MIME parsing.. Simply
> increase the socket time out in the client.

+1, That sounds a good idea.

Regards,
Senaka

>
>
> --
> Thilina Gunarathne - http://thilinag.blogspot.com
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to