[erlang-questions] Cowboy and links: weird delayed times
Fri May 15 13:05:27 CEST 2015
Well no, since there's no guarantee that terminate/3 gets called, if you
want to use monitors you shouldn't rely on that function to cleaning them
Anyway, my problem is solved by forcing the shutdown of the connection.
On Fri, May 15, 2015 at 12:14 PM, Roger Lipscombe <>
> On 15 May 2015 at 10:33, Roberto Ostinelli <> wrote:
> > Answering my own here.
> > This is pretty simple actually: if the connection header of the clients
> > keep-alive, Cowboy will wait the timeout before killing the process, so
> > obviously it isn't removed from the router.
> Yes, per
> "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."
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions