| 1 |
--- src/mod_compress.c 2006/10/04 13:29:17 1.1 |
|---|
| 2 |
+++ src/mod_compress.c 2007/04/25 19:37:10 |
|---|
| 3 |
@@ -397,6 +397,11 @@ |
|---|
| 4 |
|
|---|
| 5 |
log_error_write(srv, __FILE__, __LINE__, "sbss", "creating cachefile", p->ofn, "failed", strerror(errno)); |
|---|
| 6 |
|
|---|
| 7 |
+ /* Remove the incomplete cache file, so that later hits aren't served from it */ |
|---|
| 8 |
+ if (-1 == unlink(p->ofn->ptr)) { |
|---|
| 9 |
+ log_error_write(srv, __FILE__, __LINE__, "sbss", "unlinking incomplete cachefile", p->ofn, "failed:", strerror(errno)); |
|---|
| 10 |
+ } |
|---|
| 11 |
+ |
|---|
| 12 |
return -1; |
|---|
| 13 |
} |
|---|
| 14 |
#if 0 |
|---|