On Tuesday, August 21, 2012 8:59:39 AM UTC-7, azi wrote: > > What is the default time limit for which sequel tries to connect to mysql > server in case of a default threaded connection pool. Is there any way to > reset this. The connection_timeout at the mysql server level is 300 in my > case and sequel is taking considerable time to connect to the server on > many occasions. I want to limit this from my end. I am okay if it throws an > error as this can be handled. >
For the mysql and mysql2 adapters, Sequel doesn't have a connection timeout specified by default, so it probably defaults to whatever the mysql client library uses. You can specify the :connect_timeout option to set a specific connection timeout. I'm assuming if the timeout expires, you'll get a Sequel::DatabaseConnectionError raised. Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/sequel-talk/-/LvC204SCsewJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en.
