Open
Description
When gen_tcp:recv
(or ssl:recv
) is used, the process can't respond to supervisor events. We should use {active, once}
or {active, N}
instead.
We use one process to send data to a socket and another to receive the responses. Currently the sending process is the controlling process. We should make the receive process the controlling process instead, because gen_tcp:send
can block.