mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-02-21 19:00:54 +00:00
* fixed http status bug
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@26272 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
831addf8b5
commit
aeab0d5b58
2 changed files with 28 additions and 26 deletions
|
@ -1,3 +1,7 @@
|
|||
2008-03-11 David Wetzel <dave@turbocat.de>
|
||||
GSWAdaptors/Apache2/mod_gsw.c
|
||||
* fixed http status bug
|
||||
|
||||
2008-03-10 David Wetzel <dave@turbocat.de>
|
||||
GSWAdaptors/Apache2/mod_gsw.c
|
||||
* use shared memory to share application statistics across httpd processes
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
Copyright (C) 1999, 2000 Free Software Foundation, Inc.
|
||||
Copyright (C) 2007-2008 Free Software Foundation, Inc.
|
||||
|
||||
Written by: David Wetzel <dave@turbocat.de>
|
||||
Based on Apache2 Sample Module
|
||||
|
@ -428,9 +428,7 @@ gsw_app_conf * find_app(request_rec *r)
|
|||
|
||||
app_conf = (gsw_app_conf *) apr_table_get(cfg->app_table, (const char *)tmp_key);
|
||||
|
||||
if (app_conf != NULL) {
|
||||
return app_conf;
|
||||
}
|
||||
return app_conf;
|
||||
|
||||
}
|
||||
|
||||
|
@ -1032,37 +1030,37 @@ static int gsw_handler(request_rec *r)
|
|||
if (app != NULL) {
|
||||
int i;
|
||||
handle_status = OK;
|
||||
|
||||
|
||||
if (ap_setup_client_block(r, REQUEST_CHUNKED_ERROR) != OK) {
|
||||
ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "handle_request: DECLINED");
|
||||
handle_status = DECLINED;
|
||||
} else {
|
||||
if (r->method_number == M_POST) {
|
||||
contentLen = get_content_len(r);
|
||||
postdata = read_post_data(r, contentLen, r->pool, app);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
for (i = 0; ((i < RETRY_COUNT) && (handle_status != DECLINED)); i++) {
|
||||
handle_status = handle_request(r, app, postdata, contentLen);
|
||||
|
||||
switch (handle_status) {
|
||||
case UNREACHABLE:
|
||||
mark_unreachable(app);
|
||||
app = find_app(r);
|
||||
break;
|
||||
case DECLINED:
|
||||
break;
|
||||
case OK:
|
||||
return handle_status;
|
||||
default:
|
||||
break;
|
||||
|
||||
for (i = 0; ((i < RETRY_COUNT) && (handle_status <= OK)); i++) {
|
||||
handle_status = handle_request(r, app, postdata, contentLen);
|
||||
|
||||
switch (handle_status) {
|
||||
case UNREACHABLE:
|
||||
mark_unreachable(app);
|
||||
app = find_app(r);
|
||||
break;
|
||||
case DECLINED:
|
||||
break;
|
||||
case OK:
|
||||
return handle_status;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ((handle_status != DECLINED) && (handle_status != UNREACHABLE)) {
|
||||
return handle_status;
|
||||
|
||||
if ((handle_status > OK)) {
|
||||
return handle_status;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue