Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default M-SEARCH max response delay to 1 second #6

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

simon816
Copy link
Contributor

The spec states the following (from https://openconnectivity.org/upnp-specs/UPnP-arch-DeviceArchitecture-v2.0-20200417.pdf)

MX
Required. Field value contains maximum wait time in seconds. shall be greater than or equal to 1 and should
be less than 5 inclusive. Device responses should be delayed a random duration between 0 and this many
seconds to balance load for the control point when it processes responses.

So 0 is not valid. It appears that chromecasts will not respond to a delay of 0.

@detached
Copy link
Owner

Thank you very much for contributing this!

Just for completeness: the dial 2.1 protocol uses upnp 1.1 (http://www.upnp.org/specs/arch/UPnP-arch-DeviceArchitecture-v1.1.pdf)
But that doesn't change that you are completely right here.

@detached detached merged commit 69bf798 into detached:develop Sep 22, 2023
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.

2 participants