axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Senaka Fernando" <>
Subject Re: Caching support for large attachments
Date Sun, 16 Mar 2008 22:07:53 GMT
>>  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.


> --
> Thilina Gunarathne -

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message