[Mono-bugs] [Bug 430732] New: v0.8.0 : bug in resolve() or serviceremoved() functions

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Sep 29 14:33:08 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=430732


           Summary: v0.8.0 : bug in resolve() or serviceremoved() functions
           Product: Mono: Class Libraries
           Version: unspecified
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: Blocker
          Priority: P5 - None
         Component: Mono.Zeroconf
        AssignedTo: abockover at novell.com
        ReportedBy: mpfj at mimc.co.uk
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


In the code I'm developing, I have tested simple services scanning using
ServiceAdded and ServiceRemoved.  This all works fine ... i.e. I can see
machines being added / removed as they are powered on / off.

But if I then use ...

args.Service.Resolved += OnServiceResolved;
args.Service.Resolve();

.. I can only see machines being *added* and never removed.

This also shows up with the MZClient tool.  Using MZClient, I first do a
default scan.  As you can see, it returns a list of (Ubuntu) workstations
(which are allrunning Avahi by default).

C:\Desktop>MZClient.exe
Hit ^C when you're bored waiting for responses.

*** Found name = 'ubuntu [00:18:f3:4a:23:70]', type = '_workstation._tcp.',
domain = 'local.'
*** Found name = 'mailhost [00:30:1b:ad:79:33]', type = '_workstation._tcp.',
domain = 'local.'
*** Found name = 'mpfj-ubuntu [00:13:8f:c7:99:f7]', type =
'_workstation._tcp.',domain = 'local.'
*** Found name = 'mob-ubuntu [00:1f:d0:55:7d:33]', type =
'_workstation._tcp.',domain = 'local.'
^C

But if I then use the "--resolve" option, it only gives us one result ...

C:\Desktop>MZClient.exe --resolve
Hit ^C when you're bored waiting for responses.

*** Found name = 'ubuntu [00:18:f3:4a:23:70]', type = '_workstation._tcp.',
domain = 'local.'
*** Resolved name = 'ubuntu\032[00:18:f3:4a:23:70]._workstation._tcp.local.',
host ip = '10.0.0.100', hostname = , port = '9', interface = '3', address
type ='Any', TXT Record = [ = '']

.. and that's it !!

So I'm guessing something's broken in the resolve code ??? 

Note that this test works correctly in 0.7.6 (but I've had to move to 0.8.0 to
fix a the garbage collection bug under .NET in 0.7.6).


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list