New issue
Advanced search Search tips

Issue 874231 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 3
Type: Bug



Sign in to add a comment

chrome listens on udp port 5353 in conflict with avahi-daemon

Reported by matthijs...@gmail.com, Aug 14

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36

Steps to reproduce the problem:
1. start chrome
2. check for open udp ports

What is the expected behavior?
chrome should use the system's mDNS stack (avahi) if it wants to browse for (or publish) mDNS records

What went wrong?
chrome opens udp sockets on port 5353:

root:~# ss -lup src :mdns | cut -b 34-
Local Address:Port        Peer Address:Port                                                                                    
      0.0.0.0:mdns             0.0.0.0:*        users:(("chrome",pid=22621,fd=76))                                             
      0.0.0.0:mdns             0.0.0.0:*        users:(("avahi-daemon",pid=19639,fd=12))                                       
            *:mdns                   *:*        users:(("chrome",pid=22621,fd=114))                                            
         [::]:mdns                [::]:*        users:(("avahi-daemon",pid=19639,fd=13))                                       

If avahi-daemon is restarted while chrome is running, it explicitly warns about this situation:

avahi-daemon[19639]: *** WARNING: Detected another IPv4 mDNS stack running on this host. This makes mDNS unreliable and is thus not recommended. ***
avahi-daemon[19639]: *** WARNING: Detected another IPv6 mDNS stack running on this host. This makes mDNS unreliable and is thus not recommended. ***

Did this work before? N/A 

Chrome version: 68.0.3440.106  Channel: stable
OS Version: debian sid
Flash Version: Shockwave Flash 30.0 r0
 
Labels: Needs-Triage-M68
Components: Internals>Network>DNS
Cc: powerb@chromium.org imch...@chromium.org
Components: -Internals>Network>DNS Services>CloudPrint Internals>Cast
Very similar to Issue 859359.  Comment #22 describes a way to turn off mDNS listening.
I'm not asking about disabling mDNS. I'm saying chrome should use the system-provided mDNS stack when available, especially since Avahi warns (presumably with reason) that running multiple mDNS stacks on the same host can adversely affect reliability.
Labels: -Pri-2 Pri-3
Status: Available (was: Unconfirmed)
Need to investigate cooperating w/ Avahi on linux
Note that other platforms typically also have mDNS stacks, even Windows nowadays I think
Cc: -imch...@chromium.org

Sign in to add a comment