Просмотр исходного кода

Add note on async threads to cowboy_http_static.

Magnus Klaar 13 лет назад
Родитель
Сommit
89870b22d9
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      src/cowboy_http_static.erl

+ 6 - 0
src/cowboy_http_static.erl

@@ -20,6 +20,12 @@
 %% used for small or temporary environments where it is not preferrable to set
 %% up a second server just to serve files.
 %%
+%% If this handler is used the Erlang node running the cowboy application must
+%% be configured to use an async thread pool. This is configured by adding the
+%% `+A $POOL_SIZE' argument to the `erl' command used to start the node. See
+%% <a href="http://erlang.org/pipermail/erlang-bugs/2012-January/002720.html">
+%% this reply</a> from the OTP team to erlang-bugs
+%%
 %% == Base configuration ==
 %%
 %% The handler must be configured with a request path prefix to serve files