Re: storemanager

From: Adrian Chadd <adrian@dont-contact.us>
Date: Sat, 13 Jan 2001 18:35:40 +0800

On Sat, Jan 13, 2001, Robert Collins wrote:
> Adrian,
> does the modio code you're doing include putting the http headers into metadata, rather than just part of the data stream sent
> to storeAppend? We must decode them something like three times during a typical MISS. (Once in http.c, once in client_side.c and
> (i'm guessing once in store.c)

The storage manager doesn't touch HTTP headers.

> I'm finding myself shuffling/copying code between client_side.c and http.c do deal with the headers in a origin reply being sent
> thru to storeAppend as part of the data stream (I have to remove the Transfer-encoding header).
>
> So if I could just
> 1 decode the headers
> 2 delheaderbyid (header, HDR_TRANSFER_ENCODING);
> 3 remove Transfer-encoding from the conneciton header
> 4 storeSetHeaders(header)
> 5 storeAppend(buf+headerlength)
>
> it'd be much cleaner..
>
> I'm happy to tackle the knock on changes this will incur in client_side if you are willing to change the store manager ?

Ok. All the storage manager does is cache and supply entire untouched
responses from the network. From what I can gather, this works fine for
HTTP/1.0 but not for some of the HTTP/1.1 features.

Tell ya what, now that I've got the storage manager laid to waste in modio,
how about we all figure out what the storage manager *should* supply so
I can turn it into something useful for HTTP/1.1 ? There's no real point
in trying to continue making more HTTP/1.1 features work with the storage
manager we have.

Adrian

-- 
Adrian Chadd			"Sex Change: a simple job of outside 
<adrian@creative.net.au>	  to inside plumbing."
				    - Some random movie
Received on Sat Jan 13 2001 - 03:35:47 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:17 MST