Skip to content

Instantly share code, notes, and snippets.

@tilgovi
Created October 21, 2010 23:59
Show Gist options
  • Save tilgovi/639645 to your computer and use it in GitHub Desktop.
Save tilgovi/639645 to your computer and use it in GitHub Desktop.
start_link(Name, Options0) ->
Options = case couch_config:get("httpd", "extra_opts") of
undefined -> Options0;
StrOpts ->
try
{ok, Tokens, _} = erl_scan:string(StrOpts),
{ok, Options1} = erl_parse:parse_term(Tokens),
Options0 ++ Options1
catch
_Err:Msg ->
throw({error, bad_httpd_extra_opts})
end
end,
[httpd]
extra_opts = [{backlog, 2048}].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment