请看文档:
https://github.com/agentzh/lua-resty-mysql connect方法中有解释:Before actually resolving the host name and connecting to the remote backend, this method will always look up the connection pool for matched idle connections created by previous calls of this method.