[erlang-questions] Change suggestion in ranch/cowboy

Loïc Hoguin essen@REDACTED
Fri Sep 26 09:26:39 CEST 2014


On 09/26/2014 05:39 AM, Park, Sungjin wrote:
> 2) Dynamic parameters
> Currently, parameters required to run ranch_protocol are stored in the
> ranch_conns_sup and given to the ranch_protocol when spawning.  Combined
> with cowboy, cascaded parameters like cowboy_protocol -> cowboy_router,
> cowboy_handler -> dispatch env are constant once started.  Changing any
> of the above requires ranch_conns_sup restart.

Hmm no?

http://ninenines.eu/docs/en/ranch/1.0/manual/ranch/index.html#set_protocol_options
http://ninenines.eu/docs/en/cowboy/1.0/manual/cowboy/index.html#set_env

Changing for all existing connections is up to the application though.

-- 
Loïc Hoguin
http://ninenines.eu



More information about the erlang-questions mailing list