Changes with Apache 2.0.53
+ *) mod_proxy: Respect errors reported by pre_connection hooks.
+ [Jeff Trawick]
+
*) --with-module can now take more than one module to be statically
linked: --with-module=<modtype>:<modfile>,<modtype>:<modfile>,...
If the <modtype>-subdirectory doesn't exist it will be created and
*/
/* set up the connection filters */
- ap_run_pre_connection(origin, sock);
+ rc = ap_run_pre_connection(origin, sock);
+ if (rc != OK && rc != DONE) {
+ origin->aborted = 1;
+ ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
+ "proxy: FTP: pre_connection setup failed (%d)",
+ rc);
+ return rc;
+ }
/* possible results: */
/* 120 Service ready in nnn minutes. */
}
/* set up the connection filters */
- ap_run_pre_connection(data, data_sock);
+ rc = ap_run_pre_connection(data, data_sock);
+ if (rc != OK && rc != DONE) {
+ data->aborted = 1;
+ ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
+ "proxy: FTP: pre_connection setup failed (%d)",
+ rc);
+ return rc;
+ }
/*
* VI: Receive the Response ------------------------
}
}
if (new) {
+ int rc;
/* create a new socket */
backend->connection = NULL;
p_conn->addr, p_conn->name);
/* set up the connection filters */
- ap_run_pre_connection(*origin, p_conn->sock);
+ rc = ap_run_pre_connection(*origin, p_conn->sock);
+ if (rc != OK && rc != DONE) {
+ (*origin)->aborted = 1;
+ ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
+ "proxy: HTTP: pre_connection setup failed (%d)",
+ rc);
+ return rc;
+ }
}
return OK;
}