[erlang-questions] Cowboy and links: weird delayed times
Fri May 15 12:14:35 CEST 2015
On 15 May 2015 at 10:33, Roberto Ostinelli <roberto@REDACTED> wrote:
> Answering my own here.
> This is pretty simple actually: if the connection header of the clients is
> keep-alive, Cowboy will wait the timeout before killing the process, so
> obviously it isn't removed from the router.
Yes, per http://ninenines.eu/docs/en/cowboy/1.0/guide/http_handlers/#cleaning_up:
"If you used the process dictionary, timers, monitors or may be
receiving messages, then you can use this function to clean them up,
as Cowboy might reuse the process for the next keep-alive request."
More information about the erlang-questions