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

This commit is contained in:
Chris Rienzo 2015-12-15 14:42:48 -05:00
parent aba5892bdb
commit 563e336b49
1 changed files with 1 additions and 1 deletions

View File

@ -668,7 +668,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 */