提交 475df32a authored 作者: Chris Rienzo's avatar Chris Rienzo

FS-8662 [mod_http_cache] don't block http_tryget while another thread is fetching the URL

上级 3fd41616
...@@ -675,7 +675,7 @@ static char *url_cache_get(url_cache_t *cache, http_profile_t *profile, switch_c ...@@ -675,7 +675,7 @@ static char *url_cache_get(url_cache_t *cache, http_profile_t *profile, switch_c
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_INFO, "Failed to download URL %s\n", url); switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_INFO, "Failed to download URL %s\n", url);
cache->errors++; cache->errors++;
} }
} else if (!u) { } else if (!u || (u->status == CACHED_URL_RX_IN_PROGRESS && !download)) {
filename = DOWNLOAD_NEEDED; filename = DOWNLOAD_NEEDED;
} else { } else {
/* Wait until file is downloaded */ /* Wait until file is downloaded */
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论