2006-01-02
2006-01-02 12:54:32 by Henrik Grubbström (Grubba) <grubba@grubba.org>
-
3e333f8c5da1320125c0945d105e5f372cb2c086
(21 lines)
(+16/-5)
[
Show
| Annotate
]
Branch: 5.2
More lenient handing of stale cache callbacks.
Thanks to Arjan van Staalduijnen <Arjan.van.Staalduijnen@rtl.nl> for the suggestion.
Rev: server/protocols/http.pike:1.493
2:
// Modified by Francesco Chemolli to add throttling capabilities.
// Copyright © 1996 - 2004, Roxen IS.
- constant cvs_version = "$Id: http.pike,v 1.492 2005/12/20 17:30:57 grubba Exp $";
+ constant cvs_version = "$Id: http.pike,v 1.493 2006/01/02 12:54:32 grubba Exp $";
// #define REQUEST_DEBUG
#define MAGIC_ERROR
2518: Inside #if defined(RAM_CACHE)
}
} )
{
+ // Callback failed; in destructed object?
+ if (e = catch {
+ werror("Cache callback internal server error:\n"
+ "%s\n",
+ describe_backtrace(e));
+ // Invalidate the key.
+ destruct(cv[1]->key);
+ }) {
+ // Fall back to a standard internal error.
INTERNAL_ERROR( e );
TIMER_END(cache_lookup);
send_result();
return;
}
}
-
+ }
if( !cv[1]->key )
{
MY_TRACE_LEAVE ("Entry invalid due to zero key");