New issue
Advanced search Search tips

Issue 593820 link

Starred by 3 users

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows , Chrome
Pri: 2
Type: Bug



Sign in to add a comment

Chrome doesn't seem to wait for mDNS response before sending Privet requests

Reported by k...@deletethetrees.com, Mar 10 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.75 Safari/537.36

Steps to reproduce the problem:
While this bug is filed under Windows it's also affecting Chrome OS on Chromebooks.

The problem is that Chrome keeps losing "(local)" variants of printers. It started off as a bug here https://github.com/google/cups-connector/issues/200 but seems to be a Chrome bug instead.

What I'm seeing is that Chrome sends privet requests before mDNS responses are received. So if a local printer is in the mDNS cache it will work fine but if the cache has expired then Chrome will never query the printer for privet info.

0. Make sure your OS isn't running some kind of local mDNS server that can reply quicker than any network traffic. For example my Android phone doesn't display this bug and it seems to be running an mDNS server for googlecast.

1. Use some kind of network monitoring tool.

2. Open a print dialog in Chrome and then go to change printers and select your locally shared printer. This should fill your cache and get you in the same starting position.

3. But don't print anything. Just close that print dialog and refresh the page.

4. Open another print dialog. You should see the following traffic:
4.1. One or more mDNS requests
4.2. A HTTP privet request
4.3. A HTTP privet response
4.4. One or more mDNS responses

5. Again don't print anything. Close the dialog, refresh the page, and wait ten or so minutes for Chrome to clear it's cache (clearing the main net-internals DNS cache doesn't seem to affect the mDNS cache).

6. Open a new print dialog. You know the cache is empty when you see the loading spinner next to your printer and no printer options below it. You should see the following traffic:
6.1. One or more mDNS requests
6.2. No HTTP requests (the mDNS cache is presumably empty after step 5).
6.3. One or more mDNS responses

7. Click change printer. You should see the following traffic:
7.1. One or more mDNS requests
7.2. A HTTP privet request (the mDNS cache is presumably primed after step 6.3)
7.3. A HTTP privet response
7.4. One or more mDNS responses

What is the expected behavior?
GCP 2.0 local printers should always appear.

What went wrong?
GCP 2.0 local printers keep disappearing, sometimes for a few seconds, sometimes for 10 minutes.

Did this work before? N/A 

Chrome version: 49.0.2623.75  Channel: stable
OS Version: 10.0
Flash Version: Shockwave Flash 21.0 r0

If a local printer disappears after clicking the "print" button but before the UI closes then Chrome will revert to the OS default printer and send the job to the wrong location.
 
Components: Internals>Printing
Components: Internals>Network>DNS
Cc: gene@chromium.org
Components: Services>CloudPrint
Owner: vitalyb...@chromium.org
Status: Assigned (was: Unconfirmed)
Labels: Needs-Feedback
Is possible to have WireShark log for these communications?
I am now having trouble recreating the issue on my Windows machine. Chrome has updated from 49.0.2623.75 to 49.0.2623.87 so possibly it was fixed? Is it possible to rollback Chrome to check?

I can still recreate this problem on a Chromebook running 48.0.2564.116 but I don't know how to capture traffic on Chrome OS.

Comment 6 Deleted

Spoke too soon. Here's two captures from 49.0.2623.87 on Windows showing full cache (steps 4 & 7) vs empty cache (step 6).
empty-cache--local-printers-NOT-found.pcapng
3.5 KB Download
full-cache--local-printers-found.pcapng
17.0 KB Download

Comment 8 by mge...@chromium.org, Mar 28 2016

Labels: -Needs-Feedback
Owner: ----
Status: Available (was: Assigned)
Cc: -gene@chromium.org
Owner: pwestbro@chromium.org
Labels: OS-Chrome
Project Member

Comment 12 by sheriffbot@chromium.org, Jun 7 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Hotlist-Recharge-Cold
Owner: thestig@chromium.org
I'll pick this up at some point. I do appreciate the effort put into filing this bug.
Status: Assigned (was: Untriaged)

Sign in to add a comment