Skip to content
Browse files

[docs] cherry picking 24042cc

  • Loading branch information...
1 parent bf80c74 commit 9e17c58b57f18bba693c13abd2022fd66a2666a2 @dscape committed Nov 21, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 README.md
View
7 README.md
@@ -109,15 +109,15 @@ to specify further configuration options you can pass an object literal instead:
// nano parses the url and knows this is a database
var db = require('nano')(
{ "url" : "http://localhost:5984/foo"
- , "request_options" : { "proxy" : "http://someproxy" }
+ , "request_defaults" : { "proxy" : "http://someproxy" }
, "log" : function (id, args) {
console.log(id, args);
}
});
```
-please check [request] for more information on the defaults. they support features like cookie jar, proxies, ssl, etc.
+Please check [request] for more information on the defaults. They support features like cookie jar, proxies, ssl, etc.
-### pool size
+### pool size and open sockets
a very important configuration parameter if you have a high traffic website and are using nano is setting up the `pool.size`. by default, the node.js http global agent (client) has a certain size of active connections that can run simultaneously, while others are kept in a queue. pooling can be disabled by setting the `agent` property in `request_defaults` to false, or adjust the global pool size using:
@@ -143,7 +143,6 @@ var db = require('nano')(
});
```
-you can increase the size using `request_options` if this is problematic, and refer to the [request] documentation and examples for further clarification
## database functions

0 comments on commit 9e17c58

Please sign in to comment.
Something went wrong with that request. Please try again.