diff options
author | Filipe David Borba Manana <fdmanana@apache.org> | 2011-01-05 19:26:14 +0000 |
---|---|---|
committer | Filipe David Borba Manana <fdmanana@apache.org> | 2011-01-05 19:26:14 +0000 |
commit | ac02c7bdca501b4754eaa2846c3c1c17b0722902 (patch) | |
tree | dd9c3f0c5bb485cebb59bc01244bd5b03212c067 /etc | |
parent | 90235614b996d3d5f84bc745b18818beefc070a0 (diff) | |
download | couchdb-ac02c7bdca501b4754eaa2846c3c1c17b0722902.tar.gz |
Added [httpd] socket_options and server_options
Part of this patch (the server_options parameter) is a contribution from Randall Leeds.
Closes COUCHDB-1008
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1055592 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'etc')
-rw-r--r-- | etc/couchdb/default.ini.tpl.in | 4 | ||||
-rw-r--r-- | etc/couchdb/local.ini | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/etc/couchdb/default.ini.tpl.in b/etc/couchdb/default.ini.tpl.in index 20121ffcb..543255614 100644 --- a/etc/couchdb/default.ini.tpl.in +++ b/etc/couchdb/default.ini.tpl.in @@ -20,6 +20,10 @@ default_handler = {couch_httpd_db, handle_request} secure_rewrites = true vhost_global_handlers = _utils, _uuids, _session, _oauth, _users allow_jsonp = false +; Options for the MochiWeb HTTP server. +;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}] [ssl] port = 6984 diff --git a/etc/couchdb/local.ini b/etc/couchdb/local.ini index 1c4060aba..33380a32e 100644 --- a/etc/couchdb/local.ini +++ b/etc/couchdb/local.ini @@ -10,6 +10,11 @@ [httpd] ;port = 5984 ;bind_address = 127.0.0.1 +; Options for the MochiWeb HTTP server. +;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}] + ; Uncomment next line to trigger basic-auth popup on unauthorized requests. ;WWW-Authenticate = Basic realm="administrator" |