Git Product home page Git Product logo

Comments (5)

lemunozm avatar lemunozm commented on August 9, 2024

Hi @dabat, thanks for the comment, I'm glad you like it 😃

It's really weird since on my computer this is working and this functionality is the base of termchat and anybody complains about it...

I checked the code and the reuse address is set to true correctly in multicast to avoid these issues.

Could you tell me the OS version are you using? Thanks!

from message-io.

lemunozm avatar lemunozm commented on August 9, 2024

Hi, what's the state of this issue? Did it work?

from message-io.

dabat avatar dabat commented on August 9, 2024

hi @lemunozm my apologies for not getting back to you, the emails were buried in my inbox.
i am still seeing this error in the multicast example.
image

i'm running on macOS 11.4 and i pulled latest on master branch.
as you can see in the error message,
thread 'main' panicked at 'called Result::unwrap()on anErr value: Os { code: 48, kind: AddrInUse, message: "Address already in use" }', examples/multicast/main.rs:23:70
this is the line that is panicing

handler.network().listen(Transport::Udp, multicast_addr).unwrap();

from message-io.

lemunozm avatar lemunozm commented on August 9, 2024

Hi @dabat , thanks so much for your answer.

I made a integration test to run this use-case in CI: #94

As you noticed, multicast is not working in newer versions of Mac. Mac requires to add also the SO_REUSEPORT option in addition to SO_REUSEADDR.

Two interesting resources about it:

Solution overview:

net2 (used currently to enable SO_REUSEADDR) do not support SO_REUSE_PORT. Use socket2 instead that support it

from message-io.

lemunozm avatar lemunozm commented on August 9, 2024

Fixed in version 0.14.2

Since the test is already working in Mac I close the issue. If you continue having problems, feel free to reopen it.

Thanks for notifying the error!

from message-io.

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.