erlang-otp
Data persistence when worker process dies, how?
I have worker processes that needs gathered/calculated data as arguments on start up. This is then needed on re-starts as well. Where should I put the initialization code? Inside the supervisors init?[详细]
2023-01-25 10:33 分类:问答How to send a message from Java to Erlang?
I\'m making a application in Erlang, with a GUI in Java. I\'ve managed to establish a connection between the to languages, but now i need to (i guess) send a message from Java to Erlang, every time I[详细]
2023-01-24 07:48 分类:问答How to find the supervisor of an OTP process?
Are there functions which would allow an OTP process to find the pid开发者_StackOverflow中文版 of its supervisor?The data is hidden in the process dictionary (of any process spawned with proc_lib) und[详细]
2023-01-23 23:32 分类:问答Can I handle any received message in gen_fsm state callbacks?
I noticed that messages sent to the pid of a gen_fsm process are matched in the state callbacks as events.Is this just accidental or can I rely on this feature?[详细]
2023-01-20 06:20 分类:问答Ensuring an event is handled while switching gen_event handlers in Erlang/OTP
Let\'s say I have several versions of a gen_event handler and want to change them around while the program is running:[详细]
2023-01-17 07:01 分类:问答Supervisors with backoff
I have a supervisor with two worker processes: a TCP client which handles connection to a remote server and an FSM which handles the connection protocol.[详细]
2023-01-17 05:10 分类:问答Erlang/OTP framework's error_logger hangs under fairly high load
My application is basically a content based router which will route MMS events. The logger I am using is the one that comes with the OTP framework in SASL mode "error_logger"[详细]
2023-01-14 02:37 分类:问答Erlang: How can I remove a node from other nodes' nodes()?
开发者_如何学CI want to simulate the behavior of erl -sname example -hidden but dynamically. How can I drop a node out of visibility in a cluster?[详细]
2023-01-01 03:39 分类:问答erlang OTP Supervisor crashing
I\'m working through the Erlang documentation, trying to understand the basics of setting up an OTP gen_server and supervisor. Whenever my gen_server crashes, my supervisor crashes as well. In fact, w[详细]
2022-12-29 20:28 分类:问答Cannot spawn an erlang supervisor from the shell
I\'ve implemented a gen_server and supervisor: test_server and test_sup. I want to test them from the shell/CLI. I\'ve written their start_li开发者_如何学Pythonnk functions such that their names are r[详细]
2022-12-29 17:25 分类:问答