zn / mbf.nifty.com wrote:
> How about adding timeouts instead of excluding?
> 
> ~~~ruby
> require 'resolv'
> mdns = Resolv::MDNS.new
> mdns.timeouts = 1.0
> mdns.each_resource '_http._tcp.local', Resolv::DNS::Resource::IN::PTR do |r|
>   srv = mdns.getresource r.name, Resolv::DNS::Resource::IN::SRV
>   mdns.each_address(srv.target) do |result|
>     p(result)

I get no results with that; so the assert_not_nil won't be reached

> https://bugs.ruby-lang.org/issues/14340#change-69480

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>