Project

General

Profile

Actions

Bug #2067

closed

bodyが大きいエラーページをopen-uriで取得するとfdがリークしている

Added by takeru (takeru sasaki) over 14 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin8]

Description

=begin
StringIOではなくTempFileが生成されるぐらい大きなHTTPエラーページを取得すると
open(url) do |f|
...
end
でブロック指定しているのにfdがopenされたままになっています。
=end


Files

open_uri_bug.rb (409 Bytes) open_uri_bug.rb takeru (takeru sasaki), 09/09/2009 05:27 PM
open_uri_bug18.txt (13.1 KB) open_uri_bug18.txt takeru (takeru sasaki), 09/09/2009 05:27 PM
open_uri_bug19.txt (14.3 KB) open_uri_bug19.txt takeru (takeru sasaki), 09/09/2009 05:27 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0