Lines 205-211
Link Here
|
205 |
int fresh; |
205 |
int fresh; |
206 |
|
206 |
|
207 |
if (list->provider->recall_headers(h, r) != APR_SUCCESS) { |
207 |
if (list->provider->recall_headers(h, r) != APR_SUCCESS) { |
|
|
208 |
#ifdef CACHE_CLEANUP |
209 |
/* We got an error so before leaving we have to close potential opened files */ |
210 |
list->provider->recall_cleanup(h); |
211 |
#endif // CACHE_CLEANUP |
208 |
/* TODO: Handle this error */ |
212 |
/* TODO: Handle this error */ |
|
|
213 |
|
209 |
return DECLINED; |
214 |
return DECLINED; |
210 |
} |
215 |
} |
211 |
|
216 |
|
Lines 257-262
Link Here
|
257 |
ap_log_error(APLOG_MARK, APLOG_DEBUG, APR_SUCCESS, |
262 |
ap_log_error(APLOG_MARK, APLOG_DEBUG, APR_SUCCESS, |
258 |
r->server, |
263 |
r->server, |
259 |
"cache_select_url(): Vary header mismatch."); |
264 |
"cache_select_url(): Vary header mismatch."); |
|
|
265 |
|
266 |
#ifdef CACHE_CLEANUP |
267 |
/* We got an error so before leaving we have to close potential opened files */ |
268 |
list->provider->recall_cleanup(h); |
269 |
#endif // CACHE_CLEANUP |
270 |
|
260 |
return DECLINED; |
271 |
return DECLINED; |
261 |
} |
272 |
} |
262 |
} |
273 |
} |
Lines 337-347
Link Here
|
337 |
} |
348 |
} |
338 |
case DECLINED: { |
349 |
case DECLINED: { |
339 |
/* try again with next cache type */ |
350 |
/* try again with next cache type */ |
|
|
351 |
|
352 |
#ifdef CACHE_CLEANUP |
353 |
/* We got an error so switching to the next provider we have to close potential opened files */ |
354 |
list->provider->recall_cleanup(h); |
355 |
#endif // CACHE_CLEANUP |
356 |
|
340 |
list = list->next; |
357 |
list = list->next; |
341 |
continue; |
358 |
continue; |
342 |
} |
359 |
} |
343 |
default: { |
360 |
default: { |
344 |
/* oo-er! an error */ |
361 |
/* oo-er! an error */ |
|
|
362 |
|
363 |
#ifdef CACHE_CLEANUP |
364 |
/* We got an error so before leaving we have to close potential opened files */ |
365 |
list->provider->recall_cleanup(h); |
366 |
#endif // CACHE_CLEANUP |
367 |
|
345 |
return rv; |
368 |
return rv; |
346 |
} |
369 |
} |
347 |
} |
370 |
} |