return ENSURE_NEGATIVE(error);
if (thread_arg->sync_files) {
- PR_DEBUG;
- PR_DEBUG_MSG("%s", uri_op_get_printable(uri));
-
if (uri_is_rsync(uri)) {
if (!config_get_rsync_enabled()) {
- PR_DEBUG;
validation_destroy(state);
return 0; /* Try some other TAL URI */
}
error = rsync_download_files(uri, true, false);
} else /* HTTPS */ {
if (!config_get_http_enabled()) {
- PR_DEBUG;
validation_destroy(state);
return 0; /* Try some other TAL URI */
}
reqs_errors_log_uri(uri_get_global(uri)), true);
}
- PR_DEBUG;
-
/* Reminder: there's a positive error: EREQFAILED */
if (error) {
working_repo_push(uri_get_global(uri));
goto release_args;
if (retries == config_get_rsync_retry_count()) {
- PR_DEBUG_MSG("%u", retries);
pr_val_warn("Max RSYNC retries (%u) reached on '%s', won't retry again.",
retries, uri_get_global(uri));
error = EREQFAILED;
uri_get_global(uri),
config_get_rsync_retry_interval(),
config_get_rsync_retry_count() - retries);
- PR_DEBUG;
retries++;
sleep(config_get_rsync_retry_interval());
continue;