Permalink
Browse files

by default mochiweb use a recv buffer of 8192.

  • Loading branch information...
1 parent e854dff commit 81f8af561f61cbef88f9b6a7c1512650180ffee8 @benoitc benoitc committed Oct 16, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 apps/couch_httpd/src/couch_httpd_protocol.erl
@@ -51,7 +51,7 @@ init(Ref, Socket, Transport, Opts) ->
loop = HttpLoop}).
loop(#hstate{transport=Transport, socket=Socket}=State) ->
- ok = Transport:setopts(Socket, [{packet, http}]),
+ ok = Transport:setopts(Socket, [{packet, http}, {recbuf, 8192}]),
request(State).
request(#hstate{transport=Transport, socket=Socket}=State) ->

0 comments on commit 81f8af5

Please sign in to comment.