couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dam...@apache.org
Subject svn commit: r988360 - /couchdb/trunk/src/couchdb/couch_httpd.erl
Date Tue, 24 Aug 2010 00:13:43 GMT
Author: damien
Date: Tue Aug 24 00:13:43 2010
New Revision: 988360

URL: http://svn.apache.org/viewvc?rev=988360&view=rev
Log:
Added configurable nodelay setting via the ini. Set [httpd] nodelay=true to enable the TCP_NODELAY
option for the web server sockets, which means that even small amounts of data will be sent
immediately.

Modified:
    couchdb/trunk/src/couchdb/couch_httpd.erl

Modified: couchdb/trunk/src/couchdb/couch_httpd.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_httpd.erl?rev=988360&r1=988359&r2=988360&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_httpd.erl (original)
+++ couchdb/trunk/src/couchdb/couch_httpd.erl Tue Aug 24 00:13:43 2010
@@ -56,7 +56,7 @@ start_link(Name, Options) ->
     % will restart us and then we will pick up the new settings.
 
     BindAddress = couch_config:get("httpd", "bind_address", any),
-    %% MaxConnections = couch_config:get("httpd", "max_connections", "2048"),
+    NoDelay = "true" == couch_config:get("httpd", "nodelay", "false"),
 
     DefaultSpec = "{couch_httpd_db, handle_request}",
     DefaultFun = make_arity_1_fun(
@@ -92,7 +92,8 @@ start_link(Name, Options) ->
     {ok, Pid} = case mochiweb_http:start(Options ++ [
         {loop, Loop},
         {name, Name},
-        {ip, BindAddress}
+        {ip, BindAddress},
+        {nodelay,NoDelay}
     ]) of
     {ok, MochiPid} -> {ok, MochiPid};
     {error, Reason} ->



Mime
View raw message