Comments (13)
from mdns-sd.
This for case #77
from mdns-sd.
@dalepsmith could you please help check if #82 works for you?
from mdns-sd.
from mdns-sd.
from mdns-sd.
Thank you very much for checking it! I will look into it.
from mdns-sd.
Thanks again for the testing. I've made the following changes:
-
Use a
Vec
store the TXT properties: to keep the original order from the user input. (If the user passes inHashMap
, then the ordering might not always be the same due to the nature ofHashMap
, but passing aslice
should be good). -
Based on this quote from RFC 6763:
If a client receives a TXT record containing the same key more than
once, then the client MUST silently ignore all but the first
occurrence of that attribute.
Now the client side will only record the first key appearance.
- Base on this quote from the same RFC:
A given key SHOULD NOT appear more than once in a TXT record.
Now the server side will only publish the first key appearance as well. This is different from avahi-publish-service
based on your log, but I think it matches better with the RFC.
Let me know what you think and if it's working for you now. Thanks!
from mdns-sd.
My testing shows that with the PR, we are doing:
- Treat the key as case insensitive. If there are multiple properties with the same key, only the first one is recorded.
- The same goes for publishing. If multiple properties have the same key, only the first one is published.
- The order of properties is kept as the order provided by the caller.
I'm shooting for merging this PR in a couple of days. If any comments or issues, please let me know. Thanks!
from mdns-sd.
I've merged in PR #82 . If any issues, please let me know.
from mdns-sd.
A version (0.6.0) is published, closing this issue. If any problems, please open a new issue.
from mdns-sd.
from mdns-sd.
I would have expected to just see the "one=1" key.
You're correct. This is a bug. Thanks for checking! I've opened a PR to fix this. Sorry I missed this path earlier somehow.
Btw, congrats to your new job! hope everything go well for you.
from mdns-sd.
The remaining issue is fixed in release 0.7.1. Closing this issue (again ;-) now.
from mdns-sd.
Related Issues (20)
- error message from address decoding HOT 1
- Allow the user to disable IPv6 if desired HOT 1
- Malformed mDNS query causes ServiceDaemon to panic HOT 2
- `.browse` for all subservice's HOT 9
- Not consistent shutdowns and no way to know if shut down? HOT 7
- Trouble with query_missing_srv() HOT 5
- check_service_name_length() attempt to subtract with overflow HOT 5
- Updating service info when service is registered HOT 2
- A and AAAA mDNS records HOT 13
- Use `serde` for de/ser Txt Records HOT 4
- Failed to send to ... Resource temporarily unavailable (os error 11) HOT 2
- Received length loss HOT 21
- When a receiver is dropped, the error produced by sender should not be Error HOT 5
- Issues with using a multicast IP for a service HOT 7
- Services published using python-zerconf or systemd-resolved are not resolved HOT 17
- Utility function to resolve mDNS hostnames HOT 7
- Add support for traffic reduction techniques from RFC6762, sec. 7
- Too verbose logging, even when logging is not enabled HOT 6
- question about interaction between record refresh and cache flush bit HOT 5
- Refactor functions warned by clippy::cognitive_complexity lint HOT 2
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 mdns-sd.