<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Right, as I said we don't protect handle_info or handle_event in this case (i.e. we don't restart the timer). However, I am fairly certain that nothing is sending an event that would cause these callback functions to get called.<div><br></div><div>The only odd thing I see is the :</div><div><div><br></div><div>=ERROR REPORT==== 16-Dec-2014::09:39:44 ===</div><div>** Node node@E039D7009480 not responding **</div><div>** Removing (timedout) connection **</div><div><br></div><div>Between when the timer was set and it should've been called.</div><div><br></div><div>But I will add the timeout to handle_info/handle_event anyway.</div><div><br></div><br><div><hr id="stopSpelling">From: jesper.louis.andersen@gmail.com<br>Date: Wed, 17 Dec 2014 17:44:40 +0100<br>Subject: Re: [erlang-questions] gen_fsm timer getting canceled/never firing<br>To: mattevans123@hotmail.com<br>CC: erlang-questions@erlang.org<br><br><div dir="ltr"><div class="ecxgmail_extra"><br><div class="ecxgmail_quote">On Wed, Dec 17, 2014 at 5:26 PM, Matthew Evans <span dir="ltr"><<a href="mailto:mattevans123@hotmail.com" target="_blank">mattevans123@hotmail.com</a>></span> wrote:<blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">Is it possible that timers could get canceled for some unknown reason?</blockquote></div><br>Such a timer is cancelled if *any* message arrives or another event happens. The callback timeouts only trigger if no other event happens in the window. For a more surefire way, see gen_fsm:start_timer/2 which runs on the internal erlang timer and doesn't have this problem. You often see the call-back timers missed due to someone altering the FSMs behaviour in a way such that it does not trigger. Or if the system suddenly experiences more load so the timers won't trigger anymore.<br><br clear="all"><div><br></div>-- <br><div class="ecxgmail_signature">J.</div>
</div></div></div></div>                                          </div></body>
</html>