summaryrefslogtreecommitdiff
path: root/src/couchdb
diff options
context:
space:
mode:
authorAdam Kocoloski <kocolosk@apache.org>2010-03-05 19:20:41 +0000
committerAdam Kocoloski <kocolosk@apache.org>2010-03-05 19:20:41 +0000
commita91a4fe1110b78a6f893e139c7867b04dd4f3b02 (patch)
tree95b116c47057f71954be5f3cf931918ed2f2fe3d /src/couchdb
parent64481d0117baba9fce06384addff168912c83546 (diff)
config settings for replicator sessions and pipeline. Patch by Filipe Manana
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@919548 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb')
-rw-r--r--src/couchdb/couch_db.hrl8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/couchdb/couch_db.hrl b/src/couchdb/couch_db.hrl
index bb6b4f73..09590bc4 100644
--- a/src/couchdb/couch_db.hrl
+++ b/src/couchdb/couch_db.hrl
@@ -255,7 +255,13 @@
body = nil,
options = [
{response_format,binary},
- {inactivity_timeout, 30000}
+ {inactivity_timeout, 30000},
+ {max_sessions, list_to_integer(
+ couch_config:get("replicator", "max_http_sessions", "10")
+ )},
+ {max_pipeline_size, list_to_integer(
+ couch_config:get("replicator", "max_http_pipeline_size", "10")
+ )}
],
retries = 10,
pause = 500,