diff options
| author | forsyth <forsyth@vitanuova.com> | 2009-07-28 21:13:46 +0100 |
|---|---|---|
| committer | forsyth <forsyth@vitanuova.com> | 2009-07-28 21:13:46 +0100 |
| commit | ea1a81b6f8df49918483d91781f2791edf95a523 (patch) | |
| tree | 2050ddd6ad6c99e145a5f4a455db7c0428fa8e7a | |
| parent | eddf3bddae4e8afadafd4472f20a5fe829e15ef8 (diff) | |
20090728-2113
| -rw-r--r-- | CHANGES | 1 | ||||
| -rw-r--r-- | appl/svc/httpd/cache.b | 22 | ||||
| -rw-r--r-- | dis/svc/httpd/cache.dis | bin | 1957 -> 1895 bytes |
3 files changed, 12 insertions, 11 deletions
@@ -2,6 +2,7 @@ emu/port/main.c: put host's working directory name as emuwdir document initial environment variables in emu(1) appl/lib/bufio.b dis/lib/bufio.dis [issue 199] don't lose track of actual file seek offset (following second suggestion of mjl) + issue 196: after general apologies for appl/svc/httpd/cache.b (don't look if you don't need it, not one of ours, etc. etc.) will patch as suggested by extrudedaluminiu(!) [vs] 20090719 correct order of operands to memset(!), eg in ipif [mjl] 20090718 diff --git a/appl/svc/httpd/cache.b b/appl/svc/httpd/cache.b index 3d4549e4..d733b0a3 100644 --- a/appl/svc/httpd/cache.b +++ b/appl/svc/httpd/cache.b @@ -121,20 +121,20 @@ throw_out() if (tmp!=nil) break; } - if (i==HASHSIZE && (dbg_log!=nil)) - sys->fprint(dbg_log,"LRU not found!!!\n"); # now, the lru is in tab[i]... nlist=nil; - for(;tab[i]!=nil;tab[i]=tl tab[i]){ - if ((hd tab[i]).tag==lru){ - if (dbg_log!=nil) - sys->fprint(dbg_log,"Throwing out %s\n",(hd tab[i]).name); - cur_size-=(hd tab[i]).length; - tab[i] = tl tab[i]; + if(i < len tab){ + for(;tab[i]!=nil;tab[i]=tl tab[i]){ + if ((hd tab[i]).tag==lru){ + if (dbg_log!=nil) + sys->fprint(dbg_log,"Throwing out %s\n",(hd tab[i]).name); + cur_size-=(hd tab[i]).length; + tab[i] = tl tab[i]; + } + if (tab[i]!=nil) + nlist = (hd tab[i]) :: nlist; + if (tab[i]==nil) break; } - if (tab[i]!=nil) - nlist = (hd tab[i]) :: nlist; - if (tab[i]==nil) break; } lru=find_lru(); if (dbg_log!=nil) diff --git a/dis/svc/httpd/cache.dis b/dis/svc/httpd/cache.dis Binary files differindex 6bbc4828..38a26211 100644 --- a/dis/svc/httpd/cache.dis +++ b/dis/svc/httpd/cache.dis |
