diff options
| author | Luke Kanies <luke@madstop.com> | 2007-12-17 17:13:25 -0600 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2007-12-17 17:13:25 -0600 |
| commit | 933b1df6d84ec34a6ff347240c0151434ecc80a9 (patch) | |
| tree | c02967b3be2880db79af12e685dce03b5ffce2c6 /lib/puppet/network/client | |
| parent | e0dab9a48896f3d92b2845f5a886885ede777305 (diff) | |
| download | puppet-933b1df6d84ec34a6ff347240c0151434ecc80a9.tar.gz puppet-933b1df6d84ec34a6ff347240c0151434ecc80a9.tar.xz puppet-933b1df6d84ec34a6ff347240c0151434ecc80a9.zip | |
Fixing #961 -- closing existing, open connections when
a new connection is requested, and closing all connections
at the end of each run.
Diffstat (limited to 'lib/puppet/network/client')
| -rw-r--r-- | lib/puppet/network/client/master.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
