*** empty log message ***

svn path=/trunk/boinc/; revision=9267
This commit is contained in:
David Anderson 2006-01-19 01:13:49 +00:00
parent e4ee999059
commit c84e14cc6c
6 changed files with 28 additions and 65 deletions

View File

@ -607,3 +607,13 @@ David 18 Jan 2006
graphics_api.h
lib/
filesys.C,h
David 18 Jan 2006
- added HTTP error codes to boincerror(),
since these are sometimes used as return values.
client/
http_curl.h
pers_file_xfer.C
lib/
util.C

View File

@ -39,16 +39,16 @@
// official HTTP status codes
#define HTTP_STATUS_CONTINUE 100
#define HTTP_STATUS_OK 200
#define HTTP_STATUS_PARTIAL_CONTENT 206
#define HTTP_STATUS_RANGE_REQUEST_ERROR 416
#define HTTP_STATUS_MOVED_PERM 301
#define HTTP_STATUS_MOVED_TEMP 302
#define HTTP_STATUS_NOT_FOUND 404
#define HTTP_STATUS_PROXY_AUTH_REQ 407
#define HTTP_STATUS_INTERNAL_SERVER_ERROR 500
#define HTTP_STATUS_SERVICE_UNAVAILABLE 503
#define HTTP_STATUS_CONTINUE 100
#define HTTP_STATUS_OK 200
#define HTTP_STATUS_PARTIAL_CONTENT 206
#define HTTP_STATUS_MOVED_PERM 301
#define HTTP_STATUS_MOVED_TEMP 302
#define HTTP_STATUS_NOT_FOUND 404
#define HTTP_STATUS_PROXY_AUTH_REQ 407
#define HTTP_STATUS_RANGE_REQUEST_ERROR 416
#define HTTP_STATUS_INTERNAL_SERVER_ERROR 500
#define HTTP_STATUS_SERVICE_UNAVAILABLE 503
#define HTTP_OP_NONE 0
#define HTTP_OP_GET 1

View File

@ -321,6 +321,7 @@ void PERS_FILE_XFER::handle_xfer_failure() {
retry_or_backoff();
}
}
// Cycle to the next URL, or if we've hit all URLs in this cycle,
// backoff and try again later
//

View File

@ -184,7 +184,7 @@ if the main program handles them, it must convey them to the graphics program.
<p>
Programs that use BOINC graphics must supply the following functions:
<pre>
bool app_graphics_render(int xs, ys, double time_of_day);
int app_graphics_render(int xs, ys, double time_of_day);
</pre>
This will be called periodically in the graphics thread.
It should generate the current graphic.

View File

@ -1,53 +0,0 @@
<?php
require_once("docutil.php");
page_head("Server status XML export");
echo "
BOINC-based projects offer the following XML export
at <code>URL/server_status.php</code>.
These are generally updated every 10 minutes or so -
do not poll more often than that.
These can be used to make web sites showing
the server status of multiple BOINC projects.
<p>
";
echo html_text("
<server_status>
<update_time>1128535206</update_time>
<daemon_status>
<daemon>
<host>jocelyn</host>
<command>BOINC database</command>
<status>running</status>
</daemon>
<daemon>
<host>castelli</host>
<command>master science database</command>
<status>running</status>
</daemon>
<daemon>
<host>klaatu</host>
<command>data-driven web pages</command>
<status>disabled</status>
</daemon>
<daemon>
<host>galileo</host>
<command>feeder</command>
<status>not running</status>
</daemon>
</daemon_status>
<database_file_states>
<results_ready_to_send>614830</results_ready_to_send>
<results_in_progress>1208959</results_in_progress>
<workunits_waiting_for_validation>8</workunits_waiting_for_validation>
<workunits_waiting_for_assimilation>2</workunits_waiting_for_assimilation>
<workunits_waiting_for_deletion>4</workunits_waiting_for_deletion>
<results_waiting_for_deletion>15</results_waiting_for_deletion>
<transitioner_backlog_hours>0.00083333334</transitioner_backlog_hours>
</database_file_states>
</server_status>");
page_tail();
?>

View File

@ -948,9 +948,14 @@ const char* boincerror(int which_error) {
case ERR_FFLUSH: return "Couldn't flush file";
case ERR_FSYNC: return "Couldn't sync file";
case ERR_TRUNCATE: return "Couldn't truncate file";
case 404: return "HTTP file not found";
case 407: return "HTTP proxy authentication failure";
case 416: return "HTTP range request error";
case 500: return "HTTP internal server error";
case 503: return "HTTP service unavailable";
}
static char buf[128];
sprintf(buf, "unknown BOINC error %d. Have BOINC devs fix boincerror()!", which_error);
sprintf(buf, "Error %d", which_error);
return buf;
}