httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Subra A Narayanan" <aswat...@gmail.com>
Subject Re: Reading data from Request Body - Twice!!
Date Sat, 03 May 2008 13:27:25 GMT
Nick,

Thanks for your reply. Looks like I will have to cache the data somewhere.

Subra

On Sat, May 3, 2008 at 8:21 AM, Nick Kew <nick@webthing.com> wrote:

> On Fri, 2 May 2008 14:17:54 -0400
> "Subra A Narayanan" <aswathsn@gmail.com> wrote:
>
> > Now if the MD5 checksum passes and now I want to read the data again,
> > how would i do it? I cannot use the above function again, right?
> > 'ap_should_client_block' has already told the client once to send the
> > entire data once.
>
> You need to save the data somewhere.  With big uploads like that,
> it would be ridiculous for either apache or your app to try and
> buffer them in memory.
>
> > Reading the data once, computing the MD5, caching it and then reusing
> > the cached data if the checksum passes is one option, but I dont want
> > to do that for a variety of reasons.
>
> So where do you suppose all that data will be squirreled away
> between computing md5 and using it the second time?
>
> --
> Nick Kew
>
> Application Development with Apache - the Apache Modules Book
> http://www.apachetutor.org/
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message