[ruby-cvs:53356] akr:r46210 (trunk): * lib/net/imap.rb (Net::IMAP#initialize): Close the opened socket when

akr at ruby-lang.org akr at ruby-lang.org
Wed May 28 19:02:55 JST 2014


akr	2014-05-28 19:02:54 +0900 (Wed, 28 May 2014)

  New Revision: 46210

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=46210

  Log:
    * lib/net/imap.rb (Net::IMAP#initialize): Close the opened socket when
      any exception occur.
      This fixes a fd leak by IMAPTest#test_imaps_post_connection_check
      which start_tls_session() raises an exception.

  Modified files:
    trunk/ChangeLog
    trunk/lib/net/imap.rb
    trunk/test/net/imap/test_imap.rb


More information about the ruby-cvs mailing list