1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib
Kazuki Yamaguchi 9edc162583 [ruby/resolv] Fix confusion of received response message
This is a follow up for commit 33fb966197f1 ("Remove sender/message_id
pair after response received in resolv", 2020-09-11).

As the @senders instance variable is also used for tracking transaction
ID allocation, simply removing an entry without releasing the ID would
eventually deplete the ID space and cause
Resolv::DNS.allocate_request_id to hang.

It seems the intention of the code was to check that the received DNS
message is actually the response for the question made within the method
earlier. Let's have it actually do so.

[Bug #12838] https://bugs.ruby-lang.org/issues/12838
[Bug #17748] https://bugs.ruby-lang.org/issues/17748

https://github.com/ruby/resolv/commit/53ca9c9209
2021-05-11 12:37:34 +09:00
..
benchmark [ruby/benchmark] gemspec: Explicitly have 0 executables 2021-04-22 11:51:37 +09:00
bundler Sync bundler & rubygems 2021-05-11 11:29:41 +09:00
cgi [ruby/cgi] gemspec: Explicitly empty executables list 2021-04-22 11:51:37 +09:00
csv
delegate
did_you_mean
drb Added ruby2_keywords for Ruby 2.5 and 2.6 2021-01-18 20:41:33 +09:00
erb [ruby/erb] Version 2.2.3 2021-03-26 12:37:37 +09:00
forwardable [ruby/forwardable] gemspec: Explicitly empty the executables list 2021-04-21 20:41:52 +09:00
getoptlong
irb [ruby/irb] Dump ancestors' methods by ls command 2021-05-08 14:00:40 +09:00
logger
matrix [ruby/matrix] v0.4.1 2021-04-27 21:01:42 +09:00
net [ruby/net-http] Do not require stringio 2021-05-06 15:58:41 +09:00
observer
optparse [ruby/optparse] Moved rdoc files to doc/optparse 2021-04-11 09:03:36 +09:00
ostruct
pstore
racc Enclose the code that was accidentally a link in "tt" 2021-03-31 15:18:52 +09:00
rdoc [ruby/rdoc] Links to document texts without "rdoc-ref:" prefix 2021-04-03 01:22:09 +09:00
reline [ruby/reline] Add calling Reline::Config#reset_default_key_bindings to #reset, which is forgot to call 2021-04-09 11:57:28 +09:00
rinda
rubygems Sync bundler & rubygems 2021-05-11 11:29:41 +09:00
set [ruby/set] set is also dual licenses 2021-05-10 16:08:30 +09:00
singleton
timeout
tracer
unicode_normalize
uri [ruby/uri] Use Regexp#match? to avoid extra allocations 2021-04-22 14:55:44 +09:00
weakref
yaml
.document
abbrev.gemspec [ruby/abbrev] gemspec: Explicitly empty executables list 2021-04-21 20:39:04 +09:00
abbrev.rb
base64.gemspec [ruby/base64] gemspec: Use an explicit file list 2021-04-21 20:41:26 +09:00
base64.rb
benchmark.rb [ruby/benchmark] Add comment about terminating newline in captions; fix test method name. 2021-04-22 11:51:37 +09:00
bundler.rb Merge the master branch of Bundler 2021-04-15 15:36:15 +09:00
cgi.rb
csv.rb
debug.gemspec
debug.rb
delegate.rb
did_you_mean.rb
drb.rb
English.gemspec
English.rb
erb.gemspec [ruby/erb] Clarify supported ruby versions in gemspec 2021-03-26 12:35:52 +09:00
erb.rb [ruby/erb] Document that <% # doesn't work 2021-05-05 23:13:27 -07:00
fileutils.gemspec [ruby/fileutils] Drop support for dead old versions 2021-01-17 12:20:55 +09:00
fileutils.rb [ruby/fileutils] Removed code for dead versions 2021-01-17 12:20:57 +09:00
find.gemspec
find.rb
forwardable.rb
getoptlong.rb
ipaddr.gemspec
ipaddr.rb
irb.rb [ruby/irb] Treat encodings in exception correctly 2021-05-11 09:32:08 +09:00
logger.rb [ruby/logger] Replace "iff" with "if and only if" 2021-04-20 21:19:41 +09:00
matrix.rb [ruby/matrix] Fix a typo in a error message 2021-04-14 13:51:14 -04:00
mkmf.rb mkmf.rb: convert also arch_hdrdir [Bug #16651] 2021-04-11 21:59:45 +09:00
mutex_m.gemspec
mutex_m.rb
observer.rb
open-uri.gemspec
open-uri.rb
open3.gemspec
open3.rb
optionparser.rb
optparse.rb [ruby/optparse] Moved rdoc files to doc/optparse 2021-04-11 09:03:36 +09:00
ostruct.rb [ruby/ostruct] Add compatibility for to_h with block in Ruby 2.5 2021-04-28 17:48:05 +09:00
pp.gemspec [ruby/pp] Bump version to 0.2.0 2021-04-21 20:45:23 +09:00
pp.rb [ruby/pp] Support < Ruby 3.0 2021-04-21 20:44:55 +09:00
prettyprint.gemspec
prettyprint.rb
prime.gemspec
prime.rb
pstore.rb
racc.rb
rdoc.rb
readline.gemspec
readline.rb
reline.rb [ruby/reline] Separate keystrokes each editing mode 2021-04-08 21:41:00 +09:00
resolv-replace.gemspec
resolv-replace.rb
resolv.gemspec [ruby/resolv] gemspec: Explicitly list 0 executables 2021-04-21 20:43:18 +09:00
resolv.rb [ruby/resolv] Fix confusion of received response message 2021-05-11 12:37:34 +09:00
ruby2_keywords.gemspec Use real-case version number for the result of gem list 2021-01-19 11:51:39 +09:00
rubygems.rb Sync bundler & rubygems 2021-05-11 11:29:41 +09:00
securerandom.gemspec
securerandom.rb
set.rb [ruby/set] Adding section: What's Here 2021-05-10 16:08:29 +09:00
shellwords.gemspec
shellwords.rb
singleton.rb
tempfile.gemspec
tempfile.rb
time.gemspec
time.rb Revert "disable shareable_constant_value for CI" 2021-04-26 22:46:51 +09:00
timeout.rb [ruby/timeout] Only run timeout_after hook on fiber scheduler if scheduler exists 2021-05-06 16:51:10 +09:00
tmpdir.gemspec [ruby/tmpdir] Bump version to 0.1.2 2021-04-05 21:08:58 +09:00
tmpdir.rb [ruby/tmpdir] Make usable chars more strict 2021-04-05 21:08:57 +09:00
tracer.rb
tsort.gemspec
tsort.rb
un.gemspec
un.rb
uri.rb [ruby/uri] remove comment about URI::escape as it is removed 2021-04-22 14:55:05 +09:00
weakref.rb
yaml.rb