8000 mDNS stops working after two minutes · Issue #5 · khoih-prog/MDNS_Generic · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jan 29, 2023. It is now read-only.
This repository was archived by the owner on Jan 29, 2023. It is now read-only.
mDNS stops working after two minutes #5
@stefat

Description

@stefat

Information on Hw/Sw pattern

Arduino core MKR WiFi 1010
WIFININA ver. 1.4.7
MDNS_Generic ver 1.1.0
Arduino ver 1.8.15

Describe the bug

The hw runs a web server with mDns initialised with hostname 'mkr_1010'.
The system does well with mDNS after reset. Using Chrome/Safari browsers on different client devices (Mac, iPhone, iPad)it quickly answers the mDNS service at http://mkr_1010.local.
ISSUE: if left for few minutes (~more than 1-2) with no web requests the system no longer answers the http://mkr_1010.local url. The fw is running as the browser correctly opens the http://[IP address] request but no any longer the http://mkr_1010.local url.

Steps to Reproduce

It is a steady behaviour and it is always enough to wait few minutes after the system reset to reproduce.

Debug

Tried to remove and re-add the mDNS service after a couple of minutes of no client requests (removeAllServiceRecords();addServiceRecord(...);): no change in behaviour.

For your convenience I also add the following Wireshark screenshot:
Schermata 2021-09-01 alle 08 29 33
This screenshot shows the sniffering of the filtered ip.addr==192.168.1.138 (the system under test) coming from an hour of no web requests after the last successful http://mkr_1010.local request sent from the Chrome client.
Before time 08:19:41.091806 (blue selected row) I sent a couple of Chrome requests with no answer after the no-requests hour delay.
At time 08:19:41.091806 I pressed the reset button on the MKR WiFi 1010 pcb and sent a new http://mkr_1010.local request from the browser.
And everything restarts working: see please from time 08:22:14 and later.

Additional context

Googling around I've found this same issue exists for other platform(s). See please espressif/arduino-esp32#4406

I'm desperate.
Any help very appreciated.

Thank you.

Stefat

Metadata

Metadata

Assignees

No one assigned

    Labels

    SupportLibrary support

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0