From 4a1f4c68bc5f53025c9d3da06226a279f7eb7dc4 Mon Sep 17 00:00:00 2001 From: Sjoerd de Jong Date: Fri, 28 Aug 2015 10:56:32 +0200 Subject: [PATCH] Add known pitfalls to README --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 433ee77..b2ab93e 100644 --- a/README.md +++ b/README.md @@ -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