]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Cleanup: Remove close_on_recycle from proxy_conn_rec.
authorMladen Turk <mturk@apache.org>
Wed, 2 Aug 2006 12:03:42 +0000 (12:03 +0000)
committerMladen Turk <mturk@apache.org>
Wed, 2 Aug 2006 12:03:42 +0000 (12:03 +0000)
It behaves the same as close.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@427959 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy.h
modules/proxy/mod_proxy_ajp.c
modules/proxy/mod_proxy_ftp.c
modules/proxy/mod_proxy_http.c
modules/proxy/proxy_util.c

index 413953e65b7ef1d32b86cb47d038a9f6e53930d8..5da9b569c7bb5a0bf6c609bca43e809f8aded23f 100644 (file)
@@ -228,7 +228,6 @@ typedef struct {
     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
index bbca7fe9ba6d8fba4496db719adbbff1bcdf598a..3c73c55e04feb8c54ac701d56a6a754b8f1c31cf 100644 (file)
@@ -502,7 +502,7 @@ static int proxy_ajp_handler(request_rec *r, proxy_worker *worker,
                                              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;
@@ -510,7 +510,7 @@ static int proxy_ajp_handler(request_rec *r, proxy_worker *worker,
     }
 
     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,
index c56fca4ef923a60f052455ff4f7a48fd777c8488..f0b6118b8c4cf9aab759c343d4c807ac005c3eba 100644 (file)
@@ -731,7 +731,7 @@ static
 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);
 
@@ -940,7 +940,7 @@ static int proxy_ftp_handler(request_rec *r, proxy_worker *worker,
         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;
index ea49d1cd90db023bdc86c818420b1b50dff753a0..5e4085aae87fead262c06ed3616dc07e459e05c4 100644 (file)
@@ -966,7 +966,7 @@ skip_body:
      * 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 {
@@ -1656,7 +1656,7 @@ static int proxy_http_handler(request_rec *r, proxy_worker *worker,
      * 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,
index 34eaae366981e6577a12e4294738e650d59eb174..801495a402920abe5ae91031cc6818b37b2da9f9 100644 (file)
@@ -1553,7 +1553,7 @@ static apr_status_t connection_cleanup(void *theconn)
 #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));
@@ -1824,7 +1824,6 @@ PROXY_DECLARE(int) ap_proxy_acquire_connection(const char *proxy_function,
 
     (*conn)->worker = worker;
     (*conn)->close  = 0;
-    (*conn)->close_on_recycle = 0;
 #if APR_HAS_THREADS
     (*conn)->inreslist = 0;
 #endif