Quantcast
Channel: MySQL Forums - Connector/Python
Viewing all articles
Browse latest Browse all 384

Connection 2 seconds (no replies)

$
0
0
I have encountered a problem during using DBUtils, pymysql

I have tried use PersistentDB with configs like
_pool = PersistentDb(
"creator": pymysql,
"host": X
"port": X,
"closeable": False,
"threadlocal": None,
"connect_timeout": 10
"read_timeout": 2
"write_timeout": 5)

When I try execute _pool.connection()
sometimes the connection will cost 2 seconds randomly.




Can anyone help me to solve this problem?

Viewing all articles
Browse latest Browse all 384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>