]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Sockets weren't being closed if the proxy could not connect to
authorGraham Leggett <minfrin@apache.org>
Sat, 7 Apr 2001 14:06:13 +0000 (14:06 +0000)
committerGraham Leggett <minfrin@apache.org>
Sat, 7 Apr 2001 14:06:13 +0000 (14:06 +0000)
a remote machine...
PR:
Obtained from:
Reviewed by:

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

modules/proxy/proxy_http.c

index 359fe30f62630b9996faa29e8848f20e944c7d0e..18f3ec6394c9af6e5805bef7d325a6199ecf9242 100644 (file)
@@ -349,6 +349,7 @@ int ap_proxy_http_handler(request_rec *r, char *url,
 
        /* handle a permanent error from the above loop */
        if (failed) {
+           apr_socket_close(sock);
            if (proxyname) {
                return DECLINED;
            }