optimized ngx_http_lua_get_keepalive_peer.