httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colm MacCarthaigh <>
Subject Re: [PATCH] mod_disk_cache deterministic tempfiles
Date Thu, 18 Aug 2005 17:59:14 GMT
On Thu, Aug 18, 2005 at 01:39:18PM -0400, Brian Akins wrote:
> >Dead process is solveable with IPC, the existing locking schemes should
> >be enough for this. The hard problem I think is when a backend has
> >stalled. Can't think of an easy fix for that case.
> >
> When you stat the temp file, if its older than x seconds, delete it.  x 
> is configurable.  It's that simple.

I don't think that it is. The write()'s to the actual file arn't going
to occur very often because both reading from the CGI/proxy-backend is
buffered as is writing the file to disk. (and they should be, or the
general case would become much slower).

So mtime not being recent is no-indication of death, it could easily be
a trickling download.

And then the same thing is going to happen to the current request, and
so on and so on and you're going to end up not caching the very requests
that would benefit the most from being cached.

Colm MacCárthaigh                        Public Key:

View raw message