https://kelefat.com/posts/erlang-source-code-reading-notes-how-port-limit-is-defined/