Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request_uri 设置连接池看起来没有作用咋回事 #281

Open
yuqiquan opened this issue Oct 24, 2022 · 2 comments
Open

request_uri 设置连接池看起来没有作用咋回事 #281

yuqiquan opened this issue Oct 24, 2022 · 2 comments

Comments

@yuqiquan
Copy link

yuqiquan commented Oct 24, 2022

访问一个接口 ,大致使用如下代码实现
image

第一次访问是正常的
image
紧接着第二次就会出错
image
按理说设置了连接池不应该这样啊

而且我发现无论如何访问 都是一次正常访问 一次会出现超时情况 很奇怪

@yuqiquan yuqiquan changed the title request_uri 看起来没有作用咋回事 request_uri 设置连接池看起来没有作用咋回事 Oct 24, 2022
@pintsized
Copy link
Member

Perhaps something is happening in your newConnect function here? To be clear, when using request_uri you do not need to call connect. request_uri will open and close the connection for you (from the keepalive pool if possible). You should call connect only if you are using the streaming interface (request).

@yourenyouyu
Copy link

哥们你解决了么@yuqiquan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants