[Remove entries to the current 2.0 section below, when backported]
+ *) mod_proxy: Respect errors reported by pre_connection hooks.
+ [Jeff Trawick]
+
*) worker MPM: Fix a problem which could cause httpd processes to
remain active after shutdown. [Jeff Trawick]
}
/* 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) {
+ ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
+ "proxy: FTP: pre_connection setup failed (%d)",
+ rc);
+ data->aborted = 1;
+ proxy_ftp_cleanup(r, backend);
+ return rc;
+ }
/*
* VI: Receive the Response ------------------------
server_rec *s)
{
apr_sockaddr_t *backend_addr = conn->addr;
+ int rc;
/* The socket is now open, create a new backend server connection
*
proxy_function, backend_addr, conn->hostname);
/* set up the connection filters */
- ap_run_pre_connection(conn->connection, conn->sock);
+ rc = ap_run_pre_connection(conn->connection, conn->sock);
+ if (rc != OK && rc != DONE) {
+ conn->connection->aborted = 1;
+ ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s,
+ "proxy: %s: pre_connection setup failed (%d)",
+ proxy_function, rc);
+ return rc;
+ }
return OK;
}