<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>Hi,<br><br>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.<br><br>Robert<br><br><hr id="zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div>Hello,<br></div><div><br></div><div>I run ejabberd and try to run 1000 bot written with exmpp.  All bots login and nothing do. When I run around 900 +-50 bots i got error:</div><div><br></div><div>** exception exit: {timeout,{gen_fsm,sync_send_event, [<0.2899.0>, {connect_socket,"my-host",5222,[]}, 5000]}}<br>
</div><div><br></div><div>How can i avoid this?</div><div><br></div><div>Thank you.</div>
<br>_______________________________________________<br>erlang-questions mailing list<br>erlang-questions@erlang.org<br>http://erlang.org/mailman/listinfo/erlang-questions<br></blockquote><br></div></body></html>