Browse files

default to a tcp queue backlog of 1024 (Nicolas Adiba)

Default to a backlog of 1024 rather than the default 5 that TCP provides.
  • Loading branch information...
1 parent 0b3f29e commit c90a997383785b4fe270b8713935cc9ebf1044a0 @vinoski vinoski committed Jun 15, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/yaws_server.erl
View
7 src/yaws_server.erl
@@ -864,15 +864,18 @@ listen_opts(SC) ->
true ->
[]
end,
- [binary,
+ Opts = [binary,
{ip, SC#sconf.listen},
{packet, http},
{packet_size, 16#4000},
{recbuf, 8192},
{reuseaddr, true},
+ {backlog, 1024},
{active, false}
| proplists:get_value(listen_opts, SC#sconf.soptions, [])
- ] ++ InetType.
+ ] ++ InetType,
+ ?Debug("listen options: ~p", [Opts]),
+ Opts.
ssl_listen_opts(GC, SC, SSL) ->
InetType = if

0 comments on commit c90a997

Please sign in to comment.