#define AP_MPM_WANT_SET_ACCEPT_LOCK_MECH
#define MPM_SYNC_CHILD_TABLE()
-#define MPM_CHILD_PID(i) (ap_child_table[i].pid)
+#define MPM_CHILD_PID(i) (ap_scoreboard_image->parent[i].pid)
#define MPM_NOTE_CHILD_KILLED(i) (MPM_CHILD_PID(i) = 0)
/* Table of child status */
static int pass_request(request_rec *r)
{
- apr_socket_t *thesock = r->connection->client_socket;
+ apr_socket_t *thesock = ap_get_module_config(r->connection->conn_config, &core_module);
struct msghdr msg;
struct cmsghdr *cmsg;
int sfd;
apr_os_sock_put(&csd, &thread_socket_table[thread_num],
r->connection->pool);
ap_sock_disable_nagle(csd);
- r->connection->client_socket = csd;
+ ap_set_module_config(r->connection->conn_config, &core_module, csd);
return OK;
}
else {
#define AP_MPM_WANT_SET_ACCEPT_LOCK_MECH
#define MPM_SYNC_CHILD_TABLE()
-#define MPM_CHILD_PID(i) (ap_child_table[i].pid)
+#define MPM_CHILD_PID(i) (ap_scoreboard_image->parent[i].pid)
#define MPM_NOTE_CHILD_KILLED(i) (MPM_CHILD_PID(i) = 0)
/* Table of child status */
static int pass_request(request_rec *r)
{
- apr_socket_t *thesock = r->connection->client_socket;
+ apr_socket_t *thesock = ap_get_module_config(r->connection->conn_config, &core_module);
struct msghdr msg;
struct cmsghdr *cmsg;
int sfd;
apr_os_sock_put(&csd, &thread_socket_table[thread_num],
r->connection->pool);
ap_sock_disable_nagle(csd);
- r->connection->client_socket = csd;
+ ap_set_module_config(r->connection->conn_config, &core_module, csd);
return OK;
}
else {