Closed
Bug 1264732
Opened 8 years ago
Closed 5 years ago
[FlyWeb] JS implementation of mDNS discovery does not discover some services on Windows
Categories
(Core :: Networking, defect, P5)
Core
Networking
Tracking
()
RESOLVED
INVALID
People
(Reporter: djvj, Assigned: djvj)
References
Details
(Whiteboard: [necko-would-take])
Attachments
(2 files, 1 obsolete file)
14.53 KB,
patch
|
djvj
:
review+
|
Details | Diff | Splinter Review |
930 bytes,
patch
|
justindarc
:
review+
|
Details | Diff | Splinter Review |
Testing on Windows 10, I found that our JS implementation of mDNS discovery does not see some services that are observed on MacOS, Android, and Linux. This is odd since the Android and Linux builds should be using the same JS implementation as Windows. More specifically, the service not being seen is the bonjour '_http._tcp' service exposed by the office printer.
Updated•8 years ago
|
Whiteboard: [necko-would-take]
Assignee | ||
Comment 1•8 years ago
|
||
Windows taking a long time to discover services is due to a number of issues. Firstly, query packets weren't being seen properly. Secondly, repsonses to query packets weren't being seen by the query machine. This patch fixes a number of things: 1. Clean ups the 'toJSON' implementation on DNSPacket and DNSRecord to be a bit nicer. 2. Changes query response to only respond to queries if the query name matches the service type. Before, we would respond with every service, even if the types did not match. 3. Changes behaviour to advertise in response to queries, instead of responding directly to the socket doing the query. I wasn't able to get direct response working, but broadcast responses worked. This might need to be looked into in more detail in the future.
Attachment #8745573 -
Flags: review?(jdarcangelo)
Comment 2•8 years ago
|
||
Comment on attachment 8745573 [details] [diff] [review] fix-query-packet-handling.patch Review of attachment 8745573 [details] [diff] [review]: ----------------------------------------------------------------- LGTM. Check my one comment regarding `cacheFlush` on the PTR record. I'm not sure if it is supposed to be set in that case or not. It was previously though. ::: netwerk/dns/mdns/libmdns/fallback/MulticastDNS.jsm @@ +328,5 @@ > // PTR Record > packet.addRecord('QD', new DNSRecord({ > name: name, > recordType: DNS_RECORD_TYPES.PTR, > + classCode: DNS_CLASS_CODES.IN Shouldn't you also set `cacheFlush: true`?
Attachment #8745573 -
Flags: review?(jdarcangelo) → review+
Assignee | ||
Comment 3•8 years ago
|
||
(In reply to Justin D'Arcangelo [:justindarc] from comment #2) > Comment on attachment 8745573 [details] [diff] [review] > fix-query-packet-handling.patch > > Review of attachment 8745573 [details] [diff] [review]: > ----------------------------------------------------------------- > > LGTM. Check my one comment regarding `cacheFlush` on the PTR record. I'm not > sure if it is supposed to be set in that case or not. It was previously > though. > > ::: netwerk/dns/mdns/libmdns/fallback/MulticastDNS.jsm > @@ +328,5 @@ > > // PTR Record > > packet.addRecord('QD', new DNSRecord({ > > name: name, > > recordType: DNS_RECORD_TYPES.PTR, > > + classCode: DNS_CLASS_CODES.IN > > Shouldn't you also set `cacheFlush: true`? Good call, will do.
Assignee | ||
Comment 4•8 years ago
|
||
Updated patch. Comments addressed. Forwarding r+ from previous patch.
Attachment #8745573 -
Attachment is obsolete: true
Attachment #8746116 -
Flags: review+
Assignee | ||
Comment 5•8 years ago
|
||
http://hg.mozilla.org/projects/larch/rev/6bd05eded726
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → kvijayan
Assignee | ||
Comment 6•8 years ago
|
||
Simple patch to not open a socket listening for multicast on the loopback address.
Attachment #8746629 -
Flags: review?(jdarcangelo)
Comment 7•8 years ago
|
||
Comment on attachment 8746629 [details] [diff] [review] dont-open-loopback-socket.patch Review of attachment 8746629 [details] [diff] [review]: ----------------------------------------------------------------- LGTM
Attachment #8746629 -
Flags: review?(jdarcangelo) → review+
Comment 8•7 years ago
|
||
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P5
Assignee | ||
Comment 9•5 years ago
|
||
Flyweb project is inactive.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•