PyZeroConf Question

D

djw

AMK, thanks for your work on PyZeroConf!

Using PyZeroConf 0.12.

I'm seeing an issue with the Browser.py code. I am scanning for printers
using:

type = "_pdl-datastream._tcp.local."

The list of printers is returned, but every call to getServiceInfo() in
the Listener objectresults in a timeout and None being returned.

I am not trying to publish any services, just discovery.

Also, at the end of the list, the code seems to hang.

Any ideas?

Thanks,

Don
 
A

A.M. Kuchling

The list of printers is returned, but every call to getServiceInfo() in
the Listener objectresults in a timeout and None being returned.

I suggest compiling Apple's mDNSMonitor and looking at the sequence of
packets. It seems that some Zeroconf services don't respond to the
..getServiceInfo() calls; maybe that's what's happening here.
Also, at the end of the list, the code seems to hang.

That makes sense. The threads that monitor Zeroconf aren't marked as
daemonic, so as long as they're running the main thread doesn't exist. I've
hacked my copy of zeroconf.py to mark the threads as daemonic.

--amk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top