httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bojan Smojver <>
Subject Re: [PATCH]: emulate_sendfile fix [WAS]: File buckets v. core_output_filter
Date Tue, 23 Mar 2004 07:59:11 GMT
Yeah, it doesn't look good. The best I could come up with so far is the
apr_file_seek() every time. At least we know where we going to end up.

On Tue, 2004-03-23 at 14:19, William A. Rowe, Jr. wrote:
> At 03:42 PM 3/22/2004, Bojan Smojver wrote:
> >You are correct, it is probably an expensive operation. The other way
> >would be to know the position within a file and compare it to the one
> >that we should go to. If they are the same, do nothing.
> I smell future bugs brewing - remember the handle may be dupped.
> >There is fgetpos() in ANSI C, but I'm not sure what the equivalent in
> >APR is and how expensive it is.
> That would be 2 kernel calls instead of one - always a losing proposition.
> Bill  

View raw message