Closed voughtdq closed 5 years ago
Can you please let us know exactly which arguments you are passing here?
Btw, please note that Ranch v1.6 has migrated to a map: https://ninenines.eu/docs/en/ranch/1.6/manual/ranch/ - which this project uses.
I changed the arguments to [port: 4000, num_acceptors: 100]
and that fixed the problem,
The real problem seems to be that I'm using Ranch 1.5 which I need because another library I have depends on cowlib 2.4. I'll go ahead and close this.
I'm on ranch 1.5, so this might not be applicable to you.
I'm using Plug.Cowboy with a Phoenix project and can't confirm if this is caused by Phoenix, Plug.Cowboy, or my own local configuration. Phoenix on master and Plug.Cowboy on master.
Ranch expects the transport opts to be a proplist. They are currently being passed as a map.
After reworking plug_cowboy locally to convert the transport opts
%{max_connections: 16384, num_acceptors: 100, socket_opts: [port: 4000]}
to a Keyword list/proplist, I was getting a:badarg
exception. I'm not sure wheresocket_opts
is coming from (maybe Phoenix?), but I pulled the port config out of socket opts and was able to start without crashing.Here is the specific exception in question: