Author: ianjoyce
Date: Thu Aug 18 14:06:45 2005
New Revision: 209
Modified:
mod_parrot/trunk/mod_parrot.c
Log:
fixed support for worker MPM (from [email protected])
Modified: mod_parrot/trunk/mod_parrot.c
==============================================================================
--- mod_parrot/trunk/mod_parrot.c (original)
+++ mod_parrot/trunk/mod_parrot.c Thu Aug 18 14:06:45 2005
@@ -221,9 +221,13 @@ static int modparrot_pre_connection_hand
cfg->pre_connection_handler->id, &handler_status)) {
MPLOG_ERRORF(c->base_server, "no subroutine found for handler '%s'",
cfg->pre_connection_handler->id);
+ release_ctx(ctxp);
return HTTP_INTERNAL_SERVER_ERROR;
}
+ /* clean up */
+ release_ctx(ctxp);
+
/* tell apache we're done */
return handler_status;
}
@@ -260,9 +264,13 @@ static int modparrot_map_to_storage_hand
cfg->map_to_storage_handler->id, &handler_status)) {
MPLOG_ERRORF(r->server, "no subroutine found for handler '%s'",
cfg->map_to_storage_handler->id);
+ release_ctx(ctxp);
return HTTP_INTERNAL_SERVER_ERROR;
}
+ /* clean up */
+ release_ctx(ctxp);
+
/* tell apache we're done */
return handler_status;
}
@@ -301,9 +309,13 @@ static int modparrot_header_parser_handl
dircfg->header_parser_handler->id, &handler_status)) {
MPLOG_ERRORF(r->server, "no subroutine found for handler '%s'",
dircfg->header_parser_handler->id);
+ release_ctx(ctxp);
return HTTP_INTERNAL_SERVER_ERROR;
}
+ /* clean up */
+ release_ctx(ctxp);
+
/* tell apache we're done */
return handler_status;
}
@@ -340,6 +352,7 @@ static int modparrot_post_read_request_h
cfg->post_read_request_handler->id, &handler_status)) {
MPLOG_ERRORF(r->server, "no subroutine found for handler '%s'",
cfg->post_read_request_handler->id);
+ release_ctx(ctxp);
return HTTP_INTERNAL_SERVER_ERROR;
}
@@ -379,9 +392,13 @@ static int modparrot_process_connection_
cfg->process_connection_handler->id, &handler_status)) {
MPLOG_ERRORF(c->base_server, "no subroutine found for handler '%s'",
cfg->process_connection_handler->id);
+ release_ctx(ctxp);
return HTTP_INTERNAL_SERVER_ERROR;
}
+ /* clean up */
+ release_ctx(ctxp);
+
/* tell apache we're done */
return handler_status;
}
@@ -422,6 +439,9 @@ static void modparrot_child_init_handler
return;
}
+ /* clean up */
+ release_ctx(ctxp);
+
/* tell apache we're done */
return;
}
@@ -457,9 +477,13 @@ static int modparrot_trans_handler(reque
cfg->trans_handler->id, &handler_status)) {
MPLOG_ERRORF(r->server, "no subroutine found for handler '%s'",
cfg->trans_handler->id);
+ release_ctx(ctxp);
return HTTP_INTERNAL_SERVER_ERROR;
}
+ /* clean up */
+ release_ctx(ctxp);
+
/* tell apache we're done */
return handler_status;
}
@@ -497,9 +521,13 @@ static int modparrot_fixup_handler(reque
dircfg->fixup_handler->id, &handler_status)) {
MPLOG_ERRORF(r->server, "no subroutine found for handler '%s'",
dircfg->fixup_handler->id);
+ release_ctx(ctxp);
return HTTP_INTERNAL_SERVER_ERROR;
}
+ /* clean up */
+ release_ctx(ctxp);
+
/* tell apache we're done */
return handler_status;
}
@@ -537,9 +565,13 @@ static int modparrot_type_handler(reques
dircfg->type_handler->id, &handler_status)) {
MPLOG_ERRORF(r->server, "no subroutine found for handler '%s'",
dircfg->type_handler->id);
+ release_ctx(ctxp);
return HTTP_INTERNAL_SERVER_ERROR;
}
+ /* clean up */
+ release_ctx(ctxp);
+
/* tell apache we're done */
return handler_status;
}
@@ -582,9 +614,13 @@ static int modparrot_log_handler(request
dircfg->log_handler->id, &handler_status)) {
MPLOG_ERRORF(r->server, "no subroutine found for handler '%s'",
dircfg->log_handler->id);
+ release_ctx(ctxp);
return HTTP_INTERNAL_SERVER_ERROR;
}
+ /* clean up */
+ release_ctx(ctxp);
+
/* tell apache we're done */
return handler_status;
}
@@ -623,9 +659,13 @@ static int modparrot_access_handler(requ
dircfg->access_handler->id, &handler_status)) {
MPLOG_ERRORF(r->server, "no subroutine found for handler '%s'",
dircfg->access_handler->id);
+ release_ctx(ctxp);
return HTTP_INTERNAL_SERVER_ERROR;
}
+ /* clean up */
+ release_ctx(ctxp);
+
/* tell apache we're done */
return handler_status;
}
@@ -664,10 +704,12 @@ static int modparrot_authen_handler(requ
dircfg->authen_handler->id, &handler_status)) {
MPLOG_ERRORF(r->server, "no subroutine found for handler '%s'",
dircfg->authen_handler->id);
+ release_ctx(ctxp);
return HTTP_INTERNAL_SERVER_ERROR;
}
/* clean up */
+ release_ctx(ctxp);
/* tell apache we're done */
return handler_status;
@@ -707,9 +749,13 @@ static int modparrot_authz_handler(reque
dircfg->authz_handler->id, &handler_status)) {
MPLOG_ERRORF(r->server, "no subroutine found for handler '%s'",
dircfg->authz_handler->id);
+ release_ctx(ctxp);
return HTTP_INTERNAL_SERVER_ERROR;
}
+ /* clean up */
+ release_ctx(ctxp);
+
/* tell apache we're done */
return handler_status;
}
@@ -752,9 +798,13 @@ static int modparrot_post_config_handler
cfg->post_config_handler->id, &handler_status)) {
MPLOG_ERRORF(s, "no subroutine found for handler '%s'",
cfg->post_config_handler->id);
+ release_ctx(ctxp);
return HTTP_INTERNAL_SERVER_ERROR;
}
+ /* clean up */
+ release_ctx(ctxp);
+
/* tell apache we're done */
return handler_status;
}
@@ -800,9 +850,13 @@ static int modparrot_open_logs_handler(a
cfg->open_logs_handler->id, &handler_status)) {
MPLOG_ERRORF(s, "no subroutine found for handler '%s'",
cfg->open_logs_handler->id);
+ release_ctx(ctxp);
return HTTP_INTERNAL_SERVER_ERROR;
}
+ /* clean up */
+ release_ctx(ctxp);
+
/* tell apache we're done */
return handler_status;
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.