Mlogc: Deal with zero length audit log files.

This commit is contained in:
b1v1r
2009-04-01 19:02:49 +00:00
parent 8a11b7cee7
commit 1a9d3efd57

View File

@@ -1282,7 +1282,16 @@ static void * APR_THREAD_FUNC thread_worker(apr_thread_t *thread, void *data)
response_buf[0] = 0;
response_buf[1] = 1;
error_log(LOG_DEBUG, thread, "File found, activating cURL.");
if (finfo.size == 0) {
error_log(LOG_WARNING, thread, "File found (%" APR_SIZE_T_FMT " bytes), skipping.", finfo.size);
take_new = 1;
nodelay = 1;
goto THREAD_CLEANUP;
}
else {
error_log(LOG_DEBUG, thread, "File found (%" APR_SIZE_T_FMT " bytes), activating cURL.", finfo.size);
}
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
curl_easy_setopt(curl, CURLOPT_DEBUGFUNCTION, curl_debugfunction);