"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/resolv.rb" between
ruby-2.7.3.tar.gz and ruby-2.7.4.tar.gz

About: Ruby is an interpreted scripting language for quick and easy object-oriented programming. It has many features to process text files and to do system management tasks (as in Perl). Stable release of 2.7 series.

resolv.rb  (ruby-2.7.3):resolv.rb  (ruby-2.7.4)
skipping to change at line 699 skipping to change at line 699
Errno::ECONNRESET # Windows Errno::ECONNRESET # Windows
# No name server running on the server? # No name server running on the server?
# Don't wait anymore. # Don't wait anymore.
raise ResolvTimeout raise ResolvTimeout
end end
begin begin
msg = Message.decode(reply) msg = Message.decode(reply)
rescue DecodeError rescue DecodeError
next # broken DNS message ignored next # broken DNS message ignored
end end
if s = sender_for(from, msg) if sender == sender_for(from, msg)
break break
else else
# unexpected DNS message ignored # unexpected DNS message ignored
end end
end end
return msg, s.data return msg, sender.data
end end
def sender_for(addr, msg) def sender_for(addr, msg)
@senders.delete([addr,msg.id]) @senders[[addr,msg.id]]
end end
def close def close
socks = @socks socks = @socks
@socks = nil @socks = nil
socks&.each(&:close) socks&.each(&:close)
end end
class Sender # :nodoc: class Sender # :nodoc:
def initialize(msg, data, sock) def initialize(msg, data, sock)
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)