Danek Duvall wrote: > On Thu, Oct 23, 2008 at 03:25:24PM -0700, [EMAIL PROTECTED] wrote: >>> - line 721: We have a distinction between server methods which stream >>> their data and those that can send everything over the wire at once >>> (more or less). Sending content-size now requires that send() be the >>> latter. Does this mean any other plumbing work? >> As far as I can tell, there aren't any further plumbing changes >> required. It should be legit to sent a Content-Length header, even if >> we're streaming. We've always been able to compute the length of the >> transfer, but just never bothered. I believe we want to continue to >> stream these operations so as to keep the memory footprint reasonable. > > Okay. As long as Shawn doesn't think there are any other changes needed -- > like re-decorating the catalog handler or something.
As far as I know, no further changes are needed. And yes, you should be able to set a Content-Length header, even if streaming, but you can only do so before you return a generator object. -- Shawn Walker _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
