-
-
Save anonymous/4bc683f0e9c66f962c45 to your computer and use it in GitHub Desktop.
open-uri memory leak, even with explicit garbage collect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'open-uri' | |
loop do | |
sleep 1 | |
open('http://google.com') do |request| | |
request.read | |
end | |
GC.start | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment