- Implement cachedb-check-when-serve-expired: yes option, default
is enabled. When serve expired is enabled with cachedb, it first
checks cachedb before serving the expired response.
+ - Fixup compile without cachedb.
9 April 2024: Yorgos
- Merge #1043 from xiaoxiaoafeifei: Add loongarch support; updates
log_err("mesh_new_client: out of memory initializing serve expired");
goto servfail_mem;
}
+#ifdef USE_CACHEDB
if(!timeout && mesh->env->cfg->serve_expired &&
!mesh->env->cfg->serve_expired_client_timeout &&
(mesh->env->cachedb_enabled &&
goto servfail_mem;
}
}
+#endif
/* update statistics */
if(was_detached) {
log_assert(mesh->num_detached_states > 0);
mesh_state_delete(&s->s);
return 0;
}
+#ifdef USE_CACHEDB
if(!timeout && mesh->env->cfg->serve_expired &&
!mesh->env->cfg->serve_expired_client_timeout &&
(mesh->env->cachedb_enabled &&
return 0;
}
}
+#endif
/* update statistics */
if(was_detached) {
log_assert(mesh->num_detached_states > 0);