Browse Source

30 seconds timeout for clog checking

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@764 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 11 years ago
parent
commit
6e7edfd240
  1. 4
      xcache.c

4
xcache.c

@ -1704,7 +1704,7 @@ static zend_op_array *xc_compile_file_ex(xc_entry_t *xce, zend_file_handle *h, i
xc_sandbox_t sandbox;
/* stale clogs precheck */
if (cache->compiling) {
if (XG(request_time) - cache->compiling < 30) {
cache->clogs ++;
return old_compile_file(h, type TSRMLS_CC);
}
@ -1732,7 +1732,7 @@ static zend_op_array *xc_compile_file_ex(xc_entry_t *xce, zend_file_handle *h, i
/* miss but compiling */
if (!stored_php) {
if (cache->compiling) {
if (XG(request_time) - cache->compiling < 30) {
TRACE("%s", "miss but compiling");
cache->clogs ++;
gaveup = 1;

Loading…
Cancel
Save