From: Jason Stephenson Date: Wed, 1 May 2013 16:08:29 +0000 (-0400) Subject: Improved AC socket fix X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a2da96edb9d4f22c6d2a1582a77002c5a2023497;p=contrib%2FConifer.git Improved AC socket fix This provides better coverage for socket shutdown needs, but intends to fix the same issue as the previous commit. Signed-off-by: Jason Stephenson Signed-off-by: Mike Rylander --- 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 f38c5822be..b60031ad58 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm @@ -535,9 +535,9 @@ sub added_content_stage2 { } } } - # To avoid a lot of hanging connections. - $req->shutdown(2); } + # To avoid a lot of hanging connections. + $content->{request}->shutdown(2) if ($content->{request}); } }