On Wed, 2004-12-29 at 23:12 -0500, Nick Lewycky wrote: > I'm having trouble understanding client streams in Squid. Am I correct > in thinking that they are simply a chain of observers to the results of > an HTTP request? And that they were recently added as part of the ESI work?
clientStreams are used to implement a pipe line for the data on the client side of squid (the side that talks to the 'client' - not the side that 'implements a client'). And yes, they were done as part of the ESI work - started in C, finished in C++, which gives them their unique flavour :). > Could the present httpStart and friends in http.cc be written as client > stream callbacks? Are there any plans to port http.cc over to the client > stream API? If not, is there some fundamental reason not to that I've > missed? Yeah, thats the wrong side of the store. There will likely be a similar concept introduced eventually, with appropriate code refactoring at that time, but the current method signatures in the callbacks are completely inappropriate to the server side of squid - where http.cc resides. I'm going to upload a synopsis of the IRC chat we had to the wiki today, so that there is some more reference material on clientStreams. Rob -- GPG key available at: <http://www.robertcollins.net/keys.txt>.
signature.asc
Description: This is a digitally signed message part
