You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2021/12/16 22:01:41 UTC
[GitHub] [trafficcontrol] ocket8888 opened a new pull request #6432: Add the ability to close idle connections to TO Go client (all versions)
ocket8888 opened a new pull request #6432:
URL: https://github.com/apache/trafficcontrol/pull/6432
This fixes #4182 by making TO clients into `io.Closer`s that can close their idle connections.
I didn't add a test because it seems really difficult to test. I looked at the tests used for `net/http.Client.CloseIdleConnections` and it seems like they're really just testing that calling `CloseIdleConnections`... calls `CloseIdleConnections`. That's probably a lot more useful when you're writing a compiler for the language, but for us merely _using_ that language, I vote we trust the basic precepts of its grammar and its standard library.
<hr/>
## Which Traffic Control components are affected by this PR?
- Traffic Ops Client (Go)
## What is the best way to verify this PR?
Make sure nothing breaks.
## PR submission checklist
- [ ] This PR has tests
- [ ] This PR has documentation
- [ ] This PR has a CHANGELOG.md entry
- [x] This PR **DOES NOT FIX A SERIOUS SECURITY VULNERABILITY**
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficcontrol] zrhoffman merged pull request #6432: Add the ability to close idle connections to TO Go client (all versions)
Posted by GitBox <gi...@apache.org>.
zrhoffman merged pull request #6432:
URL: https://github.com/apache/trafficcontrol/pull/6432
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org