diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-28 10:02:54 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-28 10:02:54 +0000 |
commit | cbd370f669e74ca3e1953da94d4e780b7ddea391 (patch) | |
tree | 553cd6c289fe6b95eebc4d61d1aa7cc3a354be48 /ChangeLog | |
parent | 02afafb42ae4ae98140f2c79c67b948e1e6bc577 (diff) | |
download | ruby-cbd370f669e74ca3e1953da94d4e780b7ddea391.tar.gz |
* 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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,10 @@ +Wed May 28 19:00:31 2014 Tanaka Akira <akr@fsij.org> + + * 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. + Wed May 28 18:06:13 2014 Tanaka Akira <akr@fsij.org> * ext/openssl/ossl_ssl.c (ossl_ssl_close): Fix sync_close to work |