-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Added the 'write_timeout' option. #4381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is to assist with #4381. Change-Id: I5ebfc0da906a13edc4fb3f0ca7ab2d843d43bb00
to be clear, you need "write_timeout" to have integer coercion for the URL, that is, "mysql+mysqldb://..../?write_timeout=30". Because you're using openstack you are going through oslo.db so you don't have an easy way to add connect_args={'write_timeout': 50}. I've added a test harness for these arguments in 6837e87. you can provide a PR adding to that. |
OK, I have provided a PR to add the write_timeout option. Please review it. Thank you! |
jun923.gu has proposed a fix for this issue: Add the write_timeout option for mysql. https://gerrit.sqlalchemy.org/989 |
jun923.gu has proposed a fix for this issue: Add the write_timeout option for mysql. https://gerrit.sqlalchemy.org/990 |
Hello, I run OpenStack project and use sqlalchemy to connect mysql database. I know I can configure read_timeout option for connection url. But can't configure write_timeout option. So I read the sqlalchemy code and MySQLdb code. I found that MySQLdb 1.2.5 can support read_timeout and write_timeout option. But the sqlalchemy just support read_timeout option. So I think sqlalchemy also should support write_timeout option. If OK, I will create a PR to add write_timeout option.
The text was updated successfully, but these errors were encountered: