[open-ils-commits] [GIT] Evergreen ILS branch rel_2_7 updated. 5fe29e98f5a9f4d0851eab365dbbaa65f5133b01

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, rel_2_7 has been updated
       via  5fe29e98f5a9f4d0851eab365dbbaa65f5133b01 (commit)
      from  52f7adbd1fbe600d24be8b9f2795244cbf81d435 (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 5fe29e98f5a9f4d0851eab365dbbaa65f5133b01
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 8170b6d..2d30373 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm
@@ -564,7 +564,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