MySQLdb1 icon indicating copy to clipboard operation
MySQLdb1 copied to clipboard

read_timeout and write_timeout should have default values

Open dotmanila opened this issue 11 years ago • 0 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.

dotmanila avatar Nov 05 '14 03:11 dotmanila