Open
Description
Here is the chumak’s process tree:
{your process goes here}
|
+--------> chumak_socket <----------+
| | handle_info({tcp, _Port, Frame}, State) ->
| | decode_and_send_to_parent(Frame, State).
| |
+----------> chumak_peer (holds the gen_tcp)
chumak_peer
reads frames from gen_tcp
in active mode (more specifically {active, once}
, eventually enqueueing messages in recv_queue
), expecting that {your process}
calls chumak:recv
fast enough to consume all of that.
If your consumer isn’t capable of handling all messages as they arrive at chumak_socket
; they will accumulate indefinitely!
Metadata
Assignees
Labels
No labels