Skip to content

Fix service name generation to enforce RFC 6763 length limit#485

Open
garethsb wants to merge 3 commits intosony:masterfrom
garethsb:fix-service-name
Open

Fix service name generation to enforce RFC 6763 length limit#485
garethsb wants to merge 3 commits intosony:masterfrom
garethsb:fix-service-name

Conversation

@garethsb
Copy link
Copy Markdown
Contributor

Truncate mDNS service instance names exceeding 63 bytes with a hash suffix to ensure RFC 6763 compliance, since Avahi does not automatically truncate like mDNSResponder. Also use underscore rather than colon as the host/port separator, and declare service_name in the header. Add unit tests for service_name.

Made-with: Cursor

@garethsb
Copy link
Copy Markdown
Contributor Author

@lo-simon, @jonathan-r-thorpe, looks like the AMWA test suite is taking 40+ minutes to run, is that expected?

Truncate mDNS service instance names exceeding 63 bytes with a
hash suffix to ensure RFC 6763 compliance, since Avahi does not
automatically truncate like mDNSResponder. Also use underscore
rather than colon as the host/port separator, and declare
service_name in the header. Add unit tests for service_name.

Made-with: Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant