smutel / terraform-provider-netbox

Terraform provider for Netbox
ISC License
58 stars 19 forks source link

Idle connections are not reused #206

Closed amhn closed 1 year ago

amhn commented 1 year ago

Summary

While running the test suite I discovered that the provider opens many connections to the server. At some point I have seen > 500 concurrent connections. This is also present in normal operation.

Version

Netbox version

v3.3

Terraform version

1.4.6

Provider version

6.3.0

Issue details

Behaviors

Actual Behavior

Many concurrent connections.

Expected Behavior

Less concurrent connections.

Steps to Reproduce

  1. TF_ACC=1 go test -v ./...
  2. Look at the output of ss -t while running the tests (client or server, loadbalancers in between may change behaviour)