[前][次][番号順一覧][スレッド一覧]

ruby-changes:60296

From: Nobuyoshi <ko1@a...>
Date: Wed, 4 Mar 2020 23:27:31 +0900 (JST)
Subject: [ruby-changes:60296] f08cd708b1 (master): Fixed FD leak

https://git.ruby-lang.org/ruby.git/commit/?id=f08cd708b1

From f08cd708b11dd5b293986b92bb5e227731665b36 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 4 Mar 2020 23:26:57 +0900
Subject: Fixed FD leak


diff --git a/test/net/http/test_https.rb b/test/net/http/test_https.rb
index 64101b6..660104d 100644
--- a/test/net/http/test_https.rb
+++ b/test/net/http/test_https.rb
@@ -212,6 +212,8 @@ class TestNetHTTPS < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/net/http/test_https.rb#L212
       http.cert_store = TEST_STORE
       http.verify_hostname = false
       assert_nothing_raised { http.start }
+    ensure
+      http&.finish
     end
   end
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]