Comments (5)
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.
Hi, what's the state of this issue? Did it work?
from message-io.
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.
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 an
Err value: Os { code: 48, kind: AddrInUse, message: "Address already in use" }', examples/multicast/main.rs:23:70
this is the line that is panicing
message-io/examples/multicast/main.rs
Line 23 in 7e27a03
from message-io.
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:
- https://stackoverflow.com/questions/32661091/behavior-of-so-reuseaddr-and-so-reuseport-changed
- https://stackoverflow.com/questions/14388706/how-do-so-reuseaddr-and-so-reuseport-differ
- https://stackoverflow.com/questions/67541705/ios-socket-with-so-reuseport-does-not-receive-all-multicast-packets (possible future problem?)
Solution overview:
net2
(used currently to enable SO_REUSEADDR
) do not support SO_REUSE_PORT. Use socket2
instead that support it
from message-io.
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)
- How to use endpoint HOT 6
- Sending HTTP Responses HOT 2
- Typo in documents? HOT 2
- Modify some parameters of udp connection HOT 2
- Packages contain code that will be rejected by a future version of Rust HOT 12
- Send message from basic websocket client HOT 2
- Disconnecting badly acting client (endpoint) HOT 2
- Cancelling timed messages fails sometimes HOT 3
- Release 0.14.8
- Unable to connect with FramedTcp HOT 1
- Release v0.15.0 HOT 8
- Add support for Bevy ECS HOT 3
- Error compiling with only tcp feature enabled HOT 3
- Release 0.16.0 HOT 2
- Buymeacoffee badge is misspelled ("bymeacoffee") HOT 1
- ws can not receive text HOT 10
- Is it possible to limit max packet size when using FramedTcp transport? HOT 1
- Is it possible to create an UART adapter? HOT 3
- Not compiling on linux (ubuntu 22.04) HOT 2
- Scaling of a application HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from message-io.