*** empty log message ***

svn path=/trunk/boinc/; revision=11699
This commit is contained in:
David Anderson 2006-12-19 17:41:30 +00:00
parent 6764fcc117
commit b75fa89a8b
5 changed files with 20 additions and 3 deletions

View File

@ -13522,3 +13522,13 @@ Charlie 19 Dec 2006
option.
mac_build/
setupForBOINC.sh
David 19 Dec 2006
- core client: add "<http_1_0/>" config flag for
people with proxies that require HTTP 1.0.
Curl's default is 1.1
client/
http_curl.C
log_flags.C,h
scheduler_op.C

View File

@ -328,8 +328,12 @@ The checking this option controls is of the identity that the server claims. The
curlErr = curl_easy_setopt(curlEasy, CURLOPT_LOW_SPEED_TIME, 300L);
curlErr = curl_easy_setopt(curlEasy, CURLOPT_CONNECTTIMEOUT, 120L);
// force curl to use HTTP/1.1
curlErr = curl_easy_setopt(curlEasy, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
// force curl to use HTTP/1.0 if config specifies it
// (curl uses 1.1 by default)
//
if (config.http_1_0) {
curlErr = curl_easy_setopt(curlEasy, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
}
curlErr = curl_easy_setopt(curlEasy, CURLOPT_MAXREDIRS, 50L);
curlErr = curl_easy_setopt(curlEasy, CURLOPT_AUTOREFERER, 1L);
curlErr = curl_easy_setopt(curlEasy, CURLOPT_FOLLOWLOCATION, 1L);

View File

@ -151,6 +151,7 @@ void LOG_FLAGS::show() {
CONFIG::CONFIG() {
memset(this, 0, sizeof(CONFIG));
dont_check_file_sizes = false;
http_1_0 = false;
save_stats_days = 30;
max_file_xfers = MAX_FILE_XFERS;
max_file_xfers_per_project = MAX_FILE_XFERS_PER_PROJECT;
@ -172,6 +173,7 @@ int CONFIG::parse_options(XML_PARSER& xp) {
}
else if (xp.parse_int(tag, "save_stats_days", save_stats_days)) continue;
else if (xp.parse_bool(tag, "dont_check_file_sizes", dont_check_file_sizes)) continue;
else if (xp.parse_bool(tag, "http_1_0", http_1_0)) continue;
else if (xp.parse_int(tag, "ncpus", ncpus)) continue;
else if (xp.parse_int(tag, "max_file_xfers", max_file_xfers)) continue;
else if (xp.parse_int(tag, "max_file_xfers_per_project", max_file_xfers_per_project)) continue;

View File

@ -76,6 +76,7 @@ struct LOG_FLAGS {
struct CONFIG {
bool dont_check_file_sizes;
bool http_1_0;
int save_stats_days;
int ncpus;
int max_file_xfers;

View File

@ -824,8 +824,8 @@ int SCHEDULER_REPLY::parse(FILE* in, PROJECT* project) {
#ifdef ENABLE_AUTO_UPDATE
} else if (match_tag(buf, "<auto_update>")) {
retval = auto_update.parse(mf);
#endif
if (!retval) auto_update.present = true;
#endif
} else if (strlen(buf)>1){
if (log_flags.unparsed_xml) {
msg_printf(0, MSG_ERROR,