Skip to content

Commit

Permalink
Add known pitfalls to README
Browse files Browse the repository at this point in the history
  • Loading branch information
ssured committed Aug 28, 2015
1 parent 1505525 commit 4a1f4c6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,19 @@ db.dump(stream).then(function () {
});
```

Known pitfalls
---

### Read error 400 ECONNRESET

Basically this means your CouchDB cannot handle all concurrent requests happening. Most probable cause is you have 200+ attachments on one of your documents.

One simple way to get around this error is to limit the globalAgent maxSockets, which manages the maximum number of concurret http requests.

```js
require('http').globalAgent.maxSockets = 25;
```

Building
----
npm install
Expand Down

0 comments on commit 4a1f4c6

Please sign in to comment.