From: Jacob Fugal Date: 2007-01-30T03:32:20+09:00 Subject: Re: Net::HTTP Closes STDIN On 1/29/07, James Edward Gray II wrote: > I just upgraded to Ruby 1.8.5 to see if it would make a difference, > but I still don't get prompted for input and it still tells me $stdin > is [eof]: I can confirm on my machine: lukfugl@hephaestus:~$ ruby -v ruby 1.8.5 (2006-08-25) [i486-linux] lukfugl@hephaestus:~$ cat test.rb require 'net/http' require 'io/wait' Net::HTTP.start('www.ruby-lang.org', 80) do |http| body = http.get('/en/license.txt').body end p $stdin.eof? lukfugl@hephaestus:~$ ruby test.rb true One note: the first time I ran it, I thought it was waiting for input too, but it was really just a few second delay while fetching http://www.ruby-lang.org/en/license.txt. Jacob Fugal