apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dirk-Willem van Gulik <di...@covalent.net>
Subject Re: Granularity of mtime
Date Mon, 15 Oct 2001 18:21:48 GMT

On Fri, 12 Oct 2001, Roy T. Fielding wrote:

> On Fri, Oct 12, 2001 at 05:22:04PM -0700, Dirk-Willem van Gulik wrote:
> > > > > Is there a way to ask APR what the granularity is ?
> Is it right to assume that the reason you need this is so that the httpd
> will mark a message with a Date that is later than the Last-Modified, hence
> avoiding problems with HTTP/1.1's caching algorithm?
> If so, it is probably more efficient to simply add a second to the Date
> field value string than to try to sleep.

:-) The issue at hand is actually interacting with a benchmark test -
where one needs to use stat/fstat/lstat to see if a file has changed
(rather than shared memory, some internal signal, etc) - but cause apache
is quite quick - the next RQ is often within the second window.


View raw message