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@larl.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
}
}
# To avoid a lot of hanging connections.
- $content->{request}->shutdown(2) if ($content->{request});
+ if ($content->{request}) {
+ $content->{request}->shutdown(2);
+ $content->{request}->close();
+ }
}
}