[ruby-cvs:69831] nobu:r62671 (trunk): resolv.rb: close socket

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Mar 6 11:48:18 JST 2018


nobu	2018-03-06 11:48:17 +0900 (Tue, 06 Mar 2018)

  New Revision: 62671

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62671

  Log:
    resolv.rb: close socket
    
    * lib/resolv.rb (UnconnectedUDP#lazy_initialize): store new
      sockets before binding, so the sockets get closed when the
      requester is closing.
    
    * lib/resolv.rb (ConnectedUDP#lazy_initialize): ditto.
    
    * lib/resolv.rb (UnconnectedUDP#close): synchronize to get rid of
      race condition.
    
    * lib/resolv.rb (ConnectedUDP#close): ditto.
    
    [ruby-core:85901] [Bug #14571]
    
    From: quixoten (Devin Christensen) <quixoten at gmail.com>

  Modified files:
    trunk/lib/resolv.rb
    trunk/test/resolv/test_dns.rb


More information about the ruby-cvs mailing list