farcepest / MySQLdb1

MySQL database connector for Python (legacy version)

Home Page:https://sourceforge.net/projects/mysql-python/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

read_timeout and write_timeout should have default values

dotmanila opened this issue · comments

By default both values are set to 0 unless otherwise specified from MySQLdb.connect. This can lead to problems as applications that would otherwise broke socket connections to MySQL can hang without feedback up to tcp_retries2 timeout.

I suggest setting this to 30 and 60 respectively to match server defaults.