-
-
Notifications
You must be signed in to change notification settings - Fork 335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using gen_tcp new interface inet_backend socket cann't listen multiple sockets in one port #319
Comments
Please try #297 |
Thanks, This is confuse me. |
ERL-1287 happen again In otp 24. so sad...
I test in anther vps with otp 23.3 , this bug was fixed. "{inet_backend, socket}" option could listen mutiple sockets |
Should be fixed in the next OTP-24 release now that erlang/otp#5122 is merged. I will close the ticket. Thanks for the reports! |
I read erlang/otp#5122, and Raimo tagged it for milestone 24.1. So I guess the fix won't be available before that, right? |
Sounds like it. |
I try -kernel inet_backend socket options in erlang otp 24, follow the example from acceptor_SUITE:do_ssl_10_acceptors_10_listen_sockets/0, start listen 2 sockets from one port,it fail like this
=SUPERVISOR REPORT==== 14-Aug-2021::17:20:17.266430 ===
supervisor: {<0.255.0>,ranch_listener_sup}
errorContext: start_error
reason: {listen_error,cb_gen_tcp_listener,eaddrinuse}
offender: [{pid,undefined},
{id,ranch_acceptors_sup},
{mfargs,
{ranch_acceptors_sup,start_link,
[cb_gen_tcp_listener,ranch_tcp,logger]}},
{restart_type,permanent},
{significant,false},
{shutdown,infinity},
{child_type,supervisor}]
if change to old inet interface like “-kernel inet_backend inet”, That will work fine , Is any possible use this features with new socket nif API ?
The text was updated successfully, but these errors were encountered: