Giter Site home page Giter Site logo

Comments (6)

essen avatar essen commented on June 21, 2024 1

Please try #297

from ranch.

dogtapdsd avatar dogtapdsd commented on June 21, 2024

Thanks, This is confuse me.
https://bugs.erlang.org/browse/ERL-1287
It say Fixed in 23.1 as OTP-16743.
but I when using otp 24 still get this error
eaddrinuse (address already in use)

from ranch.

dogtapdsd avatar dogtapdsd commented on June 21, 2024

ERL-1287 happen again In otp 24. so sad...

Erlang/OTP 24 [erts-12.0.3] [source] [64-bit] [smp:1:1] [ds:1:1:10] [async-threads:1]
Eshell V12.0.3 (abort with ^G)
1>
1> gen_tcp:listen(0, [{inet_backend, socket}, {raw, 1, 15, <<1:32/native>>}, {port, 8888}, {ip, any}]).
{ok,{'$inet',gen_tcp_socket,
{<0.82.0>,
{'$socket',#Ref<0.1220593668.1297743873.200397>}}}}
2>
2> gen_tcp:listen(0, [{inet_backend, socket}, {raw, 1, 15, <<1:32/native>>}, {port, 8888}, {ip, any}]).
{error,eaddrinuse}

Erlang/OTP 23 [erts-11.2] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1] [hipe]
Eshell V11.2 (abort with ^G)
1>
1> gen_tcp:listen(0, [{inet_backend, socket}, {raw, 1, 15, <<1:32/native>>}, {port, 8888}, {ip, any}]).
{ok,{'$inet',gen_tcp_socket,
{<0.83.0>,
{'$socket',#Ref<0.3300202661.3446013953.155967>}}}}
2>
2> gen_tcp:listen(0, [{inet_backend, socket}, {raw, 1, 15, <<1:32/native>>}, {port, 8888}, {ip, any}]).
{ok,{'$inet',gen_tcp_socket,
{<0.85.0>,
{'$socket',#Ref<0.3300202661.3446013953.155982>}}}}

I test in anther vps with otp 23.3 , this bug was fixed. "{inet_backend, socket}" option could listen mutiple sockets

from ranch.

essen avatar essen commented on June 21, 2024

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!

from ranch.

Maria-12648430 avatar Maria-12648430 commented on June 21, 2024

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?

from ranch.

essen avatar essen commented on June 21, 2024

Sounds like it.

from ranch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.