/* determine if the connection need to be closed */
if (conn->close) {
apr_pool_t *p = conn->pool;
- if (conn->connection) {
- apr_pool_cleanup_kill(p, conn, connection_cleanup);
- }
apr_pool_clear(p);
memset(conn, 0, sizeof(proxy_conn_rec));
conn->pool = p;
socket_cleanup(conn);
return HTTP_INTERNAL_SERVER_ERROR;
}
- /*
- * register the connection cleanup to client connection
- * so that the connection can be closed or reused
- */
- apr_pool_cleanup_register(conn->pool, (void *)conn,
- connection_cleanup,
- apr_pool_cleanup_null);
/* For ssl connection to backend */
if (conn->is_ssl) {