mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=10086
This commit is contained in:
parent
fdb2395d69
commit
c55754e566
|
@ -4441,3 +4441,13 @@ David 2 May 2006
|
|||
feeder.C
|
||||
handle_request.C
|
||||
sched_send.C
|
||||
|
||||
Walt 2 May 2006
|
||||
- Display HTTP status message or code when its not 1xx or 2xx.
|
||||
- Add a few more HTTP status messges to boincerror().
|
||||
|
||||
client/
|
||||
net_xfer_curl.C
|
||||
lib/
|
||||
util.C
|
||||
|
|
@ -289,7 +289,14 @@ void NET_XFER_SET::got_select(FDSET_GROUP&, double timeout) {
|
|||
} else if ((nxf->response/100)*100 == HTTP_STATUS_CONTINUE) {
|
||||
continue;
|
||||
} else {
|
||||
// Got a response from server but its not OK or CONTINUE,
|
||||
// so save response with error message to display later.
|
||||
nxf->http_op_retval = nxf->response;
|
||||
if (nxf->response >= 400) {
|
||||
strcpy(nxf->error_msg, boincerror(nxf->response));
|
||||
} else {
|
||||
sprintf(nxf->error_msg, " HTTP error %d", nxf->response);
|
||||
}
|
||||
}
|
||||
gstate.need_physical_connection = false;
|
||||
} else {
|
||||
|
|
|
@ -1027,7 +1027,10 @@ const char* boincerror(int which_error) {
|
|||
case 407: return "HTTP proxy authentication failure";
|
||||
case 416: return "HTTP range request error";
|
||||
case 500: return "HTTP internal server error";
|
||||
case 501: return "HTTP not implemented";
|
||||
case 502: return "HTTP bad gateway";
|
||||
case 503: return "HTTP service unavailable";
|
||||
case 504: return "HTTP gateway timeout";
|
||||
}
|
||||
static char buf[128];
|
||||
sprintf(buf, "Error %d", which_error);
|
||||
|
|
Loading…
Reference in New Issue