httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <>
Subject Re: [PATCH] for bug 20832. Add double stat option
Date Mon, 28 Jan 2008 17:35:26 GMT
Akins, Brian wrote:
> Against trunk.  Basically, has a new config "EnableDoubleStat" (I know,
> horrible name) off by default.  If on, will use apr_file_info_get on open
> file handle.  Based on patch in thread:
> Doesn't apply cleanly against 2.2.8.

AFAICT, this still does not resolve the problem, it simply picks up the
replacement of the file.

It does not address the root 80% of the problem when an open file is
then changed during the transmission.

Doesn't it make more sense to re-fstat at the end of the transmission,
if the expected file sie has again changed, and gracefully finish the
request best-we-can?

I'm strongly -1 on leaving this solution for trunk, but +/- 0 for
backporting this approach to 2.2/2.0 (call it SlowerStatDoubleCheck :-?)
since we can't change fundamentally change the API here.

For trunk, it's time finally to open the file earlier in the request
cycle and use the fstat/file_info_get for the lifetime of the request.


View raw message