From 7365f57714168e4fbfb603e51b95d201f7cce787 Mon Sep 17 00:00:00 2001 From: Alexander Shorin Date: Thu, 20 Mar 2014 12:55:16 +0400 Subject: Increase Mochiweb RECBUF up to 32768 bytes Magically solves slow big documents uploading issue for FreeBSD 10 and OSX 10.9.2 COUCHDB-1986 --- etc/couchdb/default.ini.tpl.in | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/couchdb/default.ini.tpl.in b/etc/couchdb/default.ini.tpl.in index 3267001ae..3a1754043 100644 --- a/etc/couchdb/default.ini.tpl.in +++ b/etc/couchdb/default.ini.tpl.in @@ -50,6 +50,7 @@ allow_jsonp = false ;server_options = [{backlog, 128}, {acceptor_pool_size, 16}] ; For more socket options, consult Erlang's module 'inet' man page. ;socket_options = [{recbuf, 262144}, {sndbuf, 262144}, {nodelay, true}] +socket_options = [{recbuf, 32768}] ; COUCHDB-1986 log_max_chunk_size = 1000000 enable_cors = false -- cgit v1.2.1