http RoundTripper 支持自动断开空闲连接 #1190
shiw13
started this conversation in
Ideas(新功能的建议和讨论)
Replies: 2 comments
-
很好的建议。我们后续会考虑一下这个需求。谢谢。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
是否可以补充下测试方法;另外测试中是否开启了连接池 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
问题
本地测试 http 1.1 转发,发现bfe貌似会一直保持和后端服务之间的tcp连接,每条连接会占用2条协程,导致空闲后 协程也还在。
解决方案
bfe能否支持配置 空闲连接超时时间,超时后自动断开。也就是标准库里面的 http.Transport IdleConnTimeout
Beta Was this translation helpful? Give feedback.
All reactions