From 5693b91de2c70f8383b497790f4bcc7b4c9ce903 Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Tue, 30 Apr 2013 13:23:24 -0400 Subject: [PATCH] Shutdown added content sockets to prevent hung connections. We were getting several thousand sockets hanging around in a CLOSE_WAIT state on our server. The connections were from our server and to our server. Further investigation showed it to be caused by the stage2 added content lookup not closing the request sockets when it was done reading data. This branch fixes that. Signed-off-by: Jason Stephenson Signed-off-by: Mike Rylander --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm | 2 ++ 1 file changed, 2 insertions(+) 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 6e89be3ecd..f38c5822be 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm @@ -535,6 +535,8 @@ sub added_content_stage2 { } } } + # To avoid a lot of hanging connections. + $req->shutdown(2); } } } -- 2.11.0