[erlang-questions] gen_fsm:reply causes function_clause error
Kaiduan Xie
kaiduanx@REDACTED
Wed Feb 22 21:15:43 CET 2012
I found the reason,
sync_send_all_state_event(Pid, start, Timeout)
handle_sync_event(start, From, hello, State)
Here Pid is not same as From.
On Wed, Feb 22, 2012 at 2:51 PM, Kaiduan Xie <kaiduanx@REDACTED> wrote:
> Hi,
>
> When does gen_fsm:reply trigger a function_clause error?
>
> ** Reason for termination =
> ** {function_clause,
> [{gen_fsm,reply,
> [<0.124.0>,
> {recvd_connection_bind,
> <<0,11,0,20,33,18,164,66,142,233,218,71,198,31,64,0,0,0,0,
> 1,128,34,0,8,101,114,108,115,116,117,114,110,0,42,0,4,0,
> 1,143,199>>}]},
>
> gen_fsm is called in handle_info({tcp, Data}, StateName, State) callback.
>
> Thanks,
>
> /Kaiduan
More information about the erlang-questions
mailing list