-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
mDNS sudden death #7262
Comments
{ Continuing the related discussion from https://gitter.im/esp8266/Arduino } edit from maintainter: ref |
@jjsuwa @mikekgr Latest release 2.7.0 is using NONOS-SDK v2.2.1+100 (2019-07-03). You may also add I am running the gitter sketch as-is, and the above one with this added code in the end of auto hService = MDNS.addService(0, "itworks", "tcp", 58266);
if (hService)
{
if ((!MDNS.addServiceTxt(hService, "readme", "0xdeep")))
{
MDNS.removeService(hService);
hService = 0;
}
} This code allows me to run this bash command on Linux with avahi: edit: with cache flush #!/bin/bash
srv=_itworks._tcp
c=0
while true; do
echo ""
date
c=$((c+1))
echo $c
echo
avahi-browse -t -r $srv
sudo avahi-daemon --kill # flush mDNS cache, automatically restarted
sleep 10
done (replace Both are running flawlessly for 1770 seconds (gitter) and 770 seconds (OP). |
I think 10 second intervals are not enough to reproduce the issue. (needs 1 min+) And, any of
cannot help to resolve the issue. Repetitive mDNS resolve one-liner for Windows Command Prompt:
However, dot-decimal-form ping is still working.
|
interval edited I modifiied my scan-from-linux script:
I let it run for a while. Can you tell which is the last working core version ? |
Backing to r2.6.3 (commit 3d128e5), it seems fine. Advancing to #7025 (commit 7b0fa35)... seems OK. And then, backing again to the latest... of course reprods the issue. |
Thanks. So #7217 would be the hidden-to-me issue ? Well. We have planned to make another mDNS update that will allow to have a single instance working for all interfaces. I guess it is time to try it now for a 2.7.1 bugfix release. |
I still haven't understood why it works with me/you/some and not others. |
with this commit bf718c3 programming via OTA is again possible (devices do not disappear after a while) |
Yes, single instance is what i asked for since the very beginning. |
In my envs, when listening to The scenario which I can assume:
|
As discussed internally, this issue no longer applies because the troublesome commit was backed out. |
MCVE:
Simple WiFiSTA + mDNS, and LED blink as coalmine canary :)
Symptom:
Additional Info:
loop()
lives).CORE+WIFI+HTTP_UPDATE+UPDATER+OTA+OOM+MDNS
) tells no clue about this...The text was updated successfully, but these errors were encountered: