So the thing maybe in the code after the gen_tcp:accept() call
,but in practice all acceptors share the same simple_one_for_one supervisor and each accept results in supervisor:start_child(SharedSup, [ ]) (Cowboy works similarly), and in fact I don’t know if spawning Childs from the same Supervisor can be done in PARALLEL but if not and it’s done in SEQUENCE I think logging and other things are very fast and negligibles.
2 Likes