<div>dear list,</div><div><br></div><div>i've got a process that has been started by a supervisor with proc_lib:spawn_link/3.</div><div><br></div><div>this process is mainly listening on new incoming TCP connections using gen_tcp:accept (or the SSL equivalent), with a timeout set to infinity. when a new connection gets requested, the acceptor process spawns a new process which will handle this new connection, and then it returns to listening for new connection requests.</div>
<div><br></div><div>what is the best way to ensure that the listening acceptor process gets updated on hot code swapping? do i just need to add a the ?MODULE macro in front of the calls that get back to the acceptor loop, i.e. ?MODULE:acceptor_loop? should i actually timeout the acceptor? is there any particular system event i should be catching?</div>
<div><br></div><div>any input warmly welcome.</div><div><br></div><div>thank you,</div><div><br></div><div>r.</div>