You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Alexander Kuleshov, erlang-questions
Hi,
gen_fsm:sync_send_event/2 has a default timeout of 5000ms which means that if it doesn't get a reply from the FSM within that time the function generates an error and the process crashes. This seems like what has happened to you. One solution is to use gen_fsm:sync_send_event/3 where you can set the timeout value. Another is to find out why the FSM is taking so long time and if there is anything you can do about it.