back

by signa11·16y ago·view on hn ↗
erlang also provides a number of 'behavior' modules e.g. gen_fsm/gen_server etc. which takes out the drudgery of writing boilerplate network client/server code. w.r.t your fsm, are there timeouts also happening at some states ? might be required to avoid holding onto precious resources if either end becomes unresponsive for whatever reason...
1 comments
I had them in there, but was having a problem getting the base state machine right, so took them out. Cool that you noticed though.