Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
rcanedo committed Oct 8, 2012
1 parent 364e540 commit 483e2c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ It is then available to be reused.
### new ConnectionPool(poolConfig, connectionConfig)

* `poolConfig` {Object}
* `maxSize` {Number} The maximum number of connections there can be in the pool.
Default = `10`
* `max` {Number} The maximum number of connections there can be in the pool. Default = `10`
* `min` {Number} The minimun of connections there can be in the pool. Default = `0`
* `idleTimeoutMillis` {Number} The Number of milliseconds before closing an unused connection. Default = `30000`

* `connectionConfig` {Object} The same configuration that would be used to [create a
tedious Connection](http://pekim.github.com/tedious/api-connection.html#function_newConnection).

Expand Down
2 changes: 1 addition & 1 deletion lib/connection-pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function ConnectionPool(poolConfig, connectionConfig) {
},
max: poolConfig.max || 10,
min: poolConfig.min || 0,
idleTimeoutMillis: poolConfig.idleTimeoutMillis || 3000
idleTimeoutMillis: poolConfig.idleTimeoutMillis || 30000
};
this.pool = PoolModule.Pool(param);

Expand Down

0 comments on commit 483e2c6

Please sign in to comment.