apr_sockaddr_t *addr; /* Preparsed remote address info */
apr_uint32_t flags; /* Conection flags */
int close; /* Close 'this' connection */
- int close_on_recycle; /* Close the connection when returning to pool */
proxy_worker *worker; /* Connection pool this connection belogns to */
void *data; /* per scheme connection data */
#if APR_HAS_THREADS
r->server);
if (status != OK) {
if (backend) {
- backend->close_on_recycle = 1;
+ backend->close = 1;
ap_proxy_release_connection(scheme, backend, r->server);
}
return status;
}
backend->is_ssl = 0;
- backend->close_on_recycle = 0;
+ backend->close = 0;
/* Step One: Determine Who To Connect To */
status = ap_proxy_determine_connection(p, r, conf, worker, backend,
apr_status_t proxy_ftp_cleanup(request_rec *r, proxy_conn_rec *backend)
{
- backend->close_on_recycle = 1;
+ backend->close = 1;
ap_set_module_config(r->connection->conn_config, &proxy_ftp_module, NULL);
ap_proxy_release_connection("FTP", backend, r->server);
status = ap_proxy_acquire_connection("FTP", &backend, worker, r->server);
if (status != OK) {
if (backend) {
- backend->close_on_recycle = 1;
+ backend->close = 1;
ap_proxy_release_connection("FTP", backend, r->server);
}
return status;
* otherwise sent Connection: Keep-Alive.
*/
if (!force10) {
- if (p_conn->close || p_conn->close_on_recycle) {
+ if (p_conn->close) {
buf = apr_pstrdup(p, "Connection: close" CRLF);
}
else {
* not work.
*/
if (is_ssl)
- backend->close_on_recycle = 1;
+ backend->close = 1;
/* Step One: Determine Who To Connect To */
if ((status = ap_proxy_determine_connection(p, r, conf, worker, backend,
#endif
/* determine if the connection need to be closed */
- if (conn->close_on_recycle || conn->close) {
+ if (conn->close) {
apr_pool_t *p = conn->pool;
apr_pool_clear(conn->pool);
memset(conn, 0, sizeof(proxy_conn_rec));
(*conn)->worker = worker;
(*conn)->close = 0;
- (*conn)->close_on_recycle = 0;
#if APR_HAS_THREADS
(*conn)->inreslist = 0;
#endif