From 933b1df6d84ec34a6ff347240c0151434ecc80a9 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Mon, 17 Dec 2007 17:13:25 -0600 Subject: Fixing #961 -- closing existing, open connections when a new connection is requested, and closing all connections at the end of each run. --- lib/puppet/network/client/master.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/puppet/network/client') diff --git a/lib/puppet/network/client/master.rb b/lib/puppet/network/client/master.rb index 54b1dcaa4..341192740 100644 --- a/lib/puppet/network/client/master.rb +++ b/lib/puppet/network/client/master.rb @@ -271,6 +271,10 @@ class Puppet::Network::Client::Master < Puppet::Network::Client @catalog.apply(options) end end + + # Now close all of our existing http connections, since there's no + # reason to leave them lying open. + Puppet::Network::XMLRPCClient.clear_http_instances end lockfile.unlock -- cgit