mysql: allow specifying connect,read,write timeouts
commit47ee90f6c2190f4754d445e75b5e16c766e4da56
authorEric Wong <normalperson@yhbt.net>
Fri, 24 Oct 2008 20:31:09 +0000 (24 13:31 -0700)
committerEric Wong <normalperson@yhbt.net>
Fri, 24 Oct 2008 20:33:36 +0000 (24 13:33 -0700)
treec4074a45aaf353d202e44f625e55336a19f0aeac
parent6b94f724d090d352951f92fceda1b9cd47a997c7
mysql: allow specifying connect,read,write timeouts

The Mysql driver allows these timeouts to be specified,
so allow the following parameters to be passed to the
initializer:

  :connect_timeout
  :read_timeout
  :write_timeout

These must be integer values (representing seconds)
and will be passed straight through to the underlying
Mysql driver (which will hopefully support sub-second
timeouts at some point...).

All timeouts will default to 1 (second) here.
lib/mogilefs/mysql.rb