Bug #3309: net/http calls leak memory and file handles in windows
http://redmine.ruby-lang.org/issues/show/3309

Author: Pete Higgins
Status: Open, Priority: Normal
ruby -v: ruby 1.9.3dev (2010-05-18 trunk 27874) [i386-mingw32]

net/http calls leak memory and file handles in windows, and I've created a minimal script that demonstrates this.

When running the script, in between when the "before" and "after" lines are printed, Windows' Task Manager will show an increase in the Handles and Mem Usage columns. The amount of increase depends on the version of ruby used.

I've tested this on Windows XP with these versions of ruby:
ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32]
ruby 1.9.1p424 (2010-05-03 revision 27598) [i386-mingw32]
ruby 1.9.3dev (2010-05-18 trunk 27874) [i386-mingw32]

More discussion of this issue occurred on the RubyInstaller mailing list in this thread: 
http://groups.google.com/group/rubyinstaller/browse_frm/thread/6bc9871f4a9f079


----------------------------------------
http://redmine.ruby-lang.org