lua-resty-http icon indicating copy to clipboard operation
lua-resty-http copied to clipboard

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

Open yuqiquan opened this issue 2 years ago • 2 comments

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

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

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

yuqiquan avatar Oct 24 '22 08:10 yuqiquan

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).

pintsized avatar Dec 15 '22 09:12 pintsized

哥们你解决了么@yuqiquan

yourenyouyu avatar Feb 15 '23 08:02 yourenyouyu