<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'>Hi,<div><br></div><div>We have used this pattern in gen_servers for a long time now:</div><div><br></div><div>init(_) -></div><div> %% Some stuff</div><div> {ok, #state{}, 0}.</div><div><br></div><div>%%%</div><div>%%%</div><div><br></div><div>handle_info(timeout, State) -></div><div> %% Init stuff</div><div> {noreply,State}</div><div><br></div><div>Basically the idea is to prevent init from blocking and to have init/1 return with a timeout of 0 causing an immediate timeout message to be invoked in the handle_info.</div><div><br></div><div>Here's what's odd. Sometimes this timeout does not fire. It doesn't appear that any message is getting sent, but I would imagine that since it's a registered gen_server there is no way that can happen.</div><div><br></div><div>Does anyone have any ideas?</div><div><br></div><div>We are running vsn 17.1, and ntp is enabled on the host (Linux).</div><div><br></div><div>Thanks</div> </div></body>
</html>