You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 18, 2023. It is now read-only.
require 'dnssd'
service = '_http._tcp' #network printer
resolved = []
i = 1
while i <=100
DNSSD.browse service do |b|
DNSSD.resolve(b) do |r|
resolved << r
end
end
sleep 0.5
puts "***** Round #{i} *****"
resolved.each do |r|
puts r.fullname
end
i+=1
resolved = []
end
I scan with the following code example for printers. After about 40 rounds in the for loop the following error appears:
Any ideas how to fix this? Looks like it is crashing in the avahi-lib in this line: