[erlang-questions] What is the right way to update cowboy dispatch rules on-fly?
Mon Sep 3 21:05:34 CEST 2012
On 09/03/2012 08:56 PM, Max Lapshin wrote:
> So what is the good way to go?
> Maybe somehow flush currently inactive workers?
It's entirely application dependent. For short-lived requests there's
pretty much no concerns to have since they'll stop soon anyway. For
long-lived requests, you can send/receive a message in your handler that
tell them to shutdown.
More information about the erlang-questions