[open-ils-commits] [GIT] Evergreen ILS branch master updated. ded781a5dc2933867fd3cd41a7702bec4632fa9d

Evergreen Git git at git.evergreen-ils.org
Mon Aug 17 21:43:01 EDT 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  ded781a5dc2933867fd3cd41a7702bec4632fa9d (commit)
      from  7fec477f235fe5665b75d08244e9dccd1b535c25 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit ded781a5dc2933867fd3cd41a7702bec4632fa9d
Author: Josh Stompro <stomproj at larl.org>
Date:   Fri Jul 24 14:20:21 2015 -0500

    LP#1478123: fix leak of file descriptors by Apache workers
    
    Apache backends handling TPAC requests and making requests
    of the added content handler were not properly closing
    their sockets. This patch adds a close() after the shutdown()
    to plug the leak.
    
    Signed-off-by: Josh Stompro <stomproj at larl.org>
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm
index cf8ea00..be1a402 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm
@@ -574,7 +574,10 @@ sub added_content_stage2 {
             }
         }
         # To avoid a lot of hanging connections.
-        $content->{request}->shutdown(2) if ($content->{request});
+        if ($content->{request}) {
+            $content->{request}->shutdown(2);
+            $content->{request}->close();
+        } 
     }
 }
 

-----------------------------------------------------------------------

Summary of changes:
 .../perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list