It seems that it is coming into conflict with the already existing ranch connection. So I guess the question is how does one work around this?
Example repo: ~fancycade/mysterio - sourcehut git
Error:
=ERROR REPORT==== 20-Dec-2021::16:08:11.155350 ===
Failed to start Ranch listener mysterio_http_listener in ranch_tcp:listen([{cacerts,'...'},{key,'...'},{cert,'...'},{port,8080}]) for reason eaddrinuse (address already in use)
=SUPERVISOR REPORT==== 20-Dec-2021::16:08:11.155781 ===
supervisor: {<0.676.0>,ranch_listener_sup}
errorContext: start_error
reason: {listen_error,mysterio_http_listener,eaddrinuse}
offender: [{pid,undefined},
{id,ranch_acceptors_sup},
{mfargs,
{ranch_acceptors_sup,start_link,
[mysterio_http_listener,ranch_tcp]}},
{restart_type,permanent},
{significant,false},
{shutdown,infinity},
{child_type,supervisor}]
=SUPERVISOR REPORT==== 20-Dec-2021::16:08:11.156488 ===
supervisor: {<0.676.0>,ranch_listener_sup}
errorContext: shutdown
reason: reached_max_restart_intensity
offender: [{pid,{restarting,<0.678.0>}},
{id,ranch_acceptors_sup},
{mfargs,
{ranch_acceptors_sup,start_link,
[mysterio_http_listener,ranch_tcp]}},
{restart_type,permanent},
{significant,false},
{shutdown,infinity},
{child_type,supervisor}]