Skip to content

Define auto-reconnect and reconnect clients after shutdown - #318

Open
maximmaxim345 wants to merge 1 commit into
mainfrom
docs/goodbye-rediscovery
Open

maximmaxim345 wants to merge 1 commit into
mainfrom
docs/goodbye-rediscovery

Conversation

@maximmaxim345

Copy link
Copy Markdown
Member

The client/goodbye reasons didn't say whether dialing a client that shows up again in mDNS counts as an auto-reconnect.

This makes it count as one, whether mDNS reports a new service or an update to a known one. Servers then also keep the no-reconnect state across their own restarts.

After shutdown, servers now auto-reconnect like after restart. Waiting for mDNS doesn't work there, since a device plugged back in while its records are still in the server's mDNS cache may not show up again for a long time.

For aiosendspin, this means retrying after shutdown, and keeping the block for the other reasons when the client's mDNS service is removed, since a reboot doesn't change why the client left.

@maximmaxim345
maximmaxim345 added this pull request to stack #319 October 20, 2026 13:44
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