Commit Graph

5 Commits

Author SHA1 Message Date
Sander van Harmelen 0b1dbf31a3 core: close provider/provisioner connections
Currently Terraform is leaking goroutines and with that memory. I know
strictly speaking this maybe isn’t a real concern for Terraform as it’s
mostly used as a short running command line executable.

But there are a few of us out there that are using Terraform in some
long running processes and then this starts to become a problem.

Next to that it’s of course good programming practise to clean up
resources when they're not needed anymore. So even for the standard
command line use case, this seems an improvement in resource management.

Personally I see no downsides as the primary connection to the plugin
is kept alive (the plugin is not killed) and only unused connections
that will never be used again are closed to free up any related
goroutines and memory.
2015-06-19 21:52:50 +02:00
Mitchell Hashimoto 02d01141ca rpc: implement provisioner update 2014-10-04 09:54:03 -07:00
Mitchell Hashimoto 585067c8f5 rpc: conform to new API 2014-09-16 16:48:33 -07:00
Mitchell Hashimoto 53ebc5cb51 rpc: fix interface impl 2014-07-22 10:36:37 -07:00
Armon Dadgar c952513aed rpc: Adding support for provisioners 2014-07-10 11:38:56 -07:00