Bug #286
closed
open-uri leaking file handles
Added by Anonymous over 16 years ago.
Updated over 13 years ago.
ruby -v:
ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0]
[ruby-core:17824]
Description
=begin
With some requests (particularly status 404 from Amazon.com), the reference to the temp file used to buffer the response is lost and left open, causing failure in long running processes. Temp file remains after process is killed.
attached script contains example repro.
=end
Files
=begin
Hi,
At Fri, 18 Jul 2008 09:21:46 +0900,
Anonymous wrote in [ruby-core:17824]:
Target version:
Which version?
With some requests (particularly status 404 from Amazon.com),
the reference to the temp file used to buffer the response is
lost and left open, causing failure in long running
processes. Temp file remains after process is killed.
attached script contains example repro.
I couldn't reproduce it with your script and latest 1.8.
--
Nobu Nakada
=end
=begin
Produced in 1.8.2 and 1.8.6p36.
=end
=begin
adding -v 1.8.2 on MacOS 10.4, and -v 1.8.6p36 on Fedora 8.
=end
=begin
I can duplicate the bug on OS X 10.5
ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0]
=end
- Assignee set to akr (Akira Tanaka)
- ruby -v set to ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0]
=begin
Those files get removed at process termination, so it doesn't "leak" truely.
=end
- Status changed from Open to Closed
- % Done changed from 0 to 100
=begin
Applied in changeset r24902.
=end
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0Like0Like0Like0