sequelize/sequelize — pull request #1251 by evantahler (2014-01-15 05:18:40+00:00)
Title: pool settings are not transported down to replica connections

Say you have a replica set like so:

``` javascript
{
"dialect" : "mysql",
"port" : 3306,
"pool" : {
"maxConnections" : 20,
"maxIdleTime" : 30000
},
"replication" : {
"write": {
"host" : "127.0.0.1",
"username" : "root",
"password" : ""
},
"read": [
{
"host" : "127.0.0.1",
"username" : "root",
"password" : ""
}
]
}
}
```

Connecting to the DB will fail:

```bash
if (config.pool.handleDisconnects) {
^
TypeError: Cannot read property 'handleDisconnects' of undefined
```

I don't know if you should be bringing my pool settings into the connection, but either way, it's not set. This will at least get the application to boot :D