Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

use defaults from DefaultTransport for our custom transport (ie timeouts) #133

Merged

Conversation

jboyd01
Copy link
Contributor

@jboyd01 jboyd01 commented Sep 27, 2018

fixes #132

to test using k8s service catalog, do a svcat sync broker ups-broker repeatedly. Without the fix, you see the number of established connections grow as reported by sudo nsenter -t $BROKERPID --net netstat -n -p

With this fix, the number of established connections remains constant which is a small number related to the number of connections used within the last 90 seconds (IdleConnTimeout).

@jboyd01 jboyd01 force-pushed the use-defaulttransport-defaults branch from 91aa47c to 4e8d1a3 Compare September 27, 2018 16:57
@coveralls
Copy link

Coverage Status

Coverage decreased (-1.1%) to 91.547% when pulling 4e8d1a3 on jboyd01:use-defaulttransport-defaults into 9cc214e on pmorie:master.

@carolynvs
Copy link

Best repro test ever! 💯

Copy link

@carolynvs carolynvs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 This is exactly what I've done in other projects when we had to create a custom transport for TLS.

@jboyd01
Copy link
Contributor Author

jboyd01 commented Sep 28, 2018

Thanks to @carolynvs & @shawn-hurley for the review, I'll merge it.

@jboyd01 jboyd01 merged commit 79b374a into kubernetes-retired:master Sep 28, 2018
jboyd01 pushed a commit to jboyd01/go-open-service-broker-client that referenced this pull request Oct 15, 2018
jboyd01 pushed a commit that referenced this pull request Oct 15, 2018
* Drain & Close the response Body (#131)

* use defaults from DefaultTransport for our custom transport (ie timeouts) (#133)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom Transport used with HTTP Client has no timeouts & many bad defaults
4 participants