Loading...
This site is best viewed in a modern browser with JavaScript enabled.
Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error.
resty.redis set_keepalive 没有实际效果
the.warl0ck.1989
下午在 github 提交了 issue,没人回复
https://github.com/openresty/lua-resty-redis/issues/121
有人可以帮忙看下吗?
简单讲,在用完 redis 之后,调用了 set_keepalive(10000,1024),但是从 netstat -ano 里看到的却是 TIME_WAIT
想知道问题在哪里?
the.warl0ck.1989
换了其他语言试了试,没这个问题,netstat -ano 正常的显示为 ESTABLISHED keepalive (10.0/0/0)
所以是 ngx.socket.tcp 的问题