>Number:         2513
>Category:       mod_proxy
>Synopsis:       Apache does not always unlink tmp files in apache cache area
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Fri Jun 26 09:10:00 PDT 1998
>Last-Modified:
>Originator:     [EMAIL PROTECTED]
>Organization:
apache
>Release:        1.3.0
>Environment:
Irix 5.3 patched to Jan '98 levels.

CC compiler - gcc-2.7.2.3

[EMAIL PROTECTED] 62: uname -a
IRIX d8544-cs 5.3 11091810 IP7 mips
>Description:
Apache leaves occational tmp files in the cache area root which are never 
removed 
from the system.  These are a result of a client breaking the connection during 
the transfer of a document from an external host.  The document is partially
transfered.  When the client breaks the connection, the transfer quits, but
apache never unlinks the file.

This can be resolved temporarily by having a cron job remove all files of the 
form
tmpXXXXX from the root of the cache directory.

It does appear that cacheclean eventually will remove these files.

-rw--w----    1 internet intgroup   44850 Jun 25 19:05 tmpa001Yc
-rw--w----    1 internet intgroup  375262 Jun 25 19:31 tmpa002ci
-rw--w----    1 internet intgroup    8517 Jun 25 19:40 tmpa002eB
-rw--w----    1 internet intgroup    8517 Jun 25 19:35 tmpa002eL
-rw--w----    1 internet intgroup   16656 Jun 25 11:08 tmpa005VT

>How-To-Repeat:
Initiate a transfer using client browser (I'm using netscape 4.0).  During the
transfer, hit the stop button (transfer is incomplete).  The temporary file is
created but incomplete.  The rename to the Cache is not completed (this is 
good).  
The unlink is not executed.
>Fix:

>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <[EMAIL PROTECTED]> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]



Reply via email to