lua-resty-http
lua-resty-http copied to clipboard
request_uri 设置连接池看起来没有作用咋回事
访问一个接口 ,大致使用如下代码实现
第一次访问是正常的
紧接着第二次就会出错
按理说设置了连接池不应该这样啊
而且我发现无论如何访问 都是一次正常访问 一次会出现超时情况 很奇怪
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
).
哥们你解决了么@yuqiquan