Hi Jason,

  In mail "[ruby-talk:21688] net/http problems on FreeBSD 4.4-RC"
    Jason DiCioccio <geniusj / bluenugget.net> wrote:

> I'm having the following problems with Net::HTTP on ruby 1.6.4 (and 1.6.5) on
> FreeBSD 4.4-RC.. I suspect it to be a bug specific ruby on the platform actually
> since it works on my OS X box fine.

> /usr/local/lib/ruby/1.6/net/protocol.rb:631:in `sysread': End of file reached (EOFError)

>   # Fetch the requested document
>   h = Net::HTTP.new(host, port)
>   h.use_ssl = true if scheme == "https" # enable SSL/TLS

Hmm... I cannot reproduce this bug on my linux box.
For the time being, try block form #start like the code below.

    Net::HTTP.start(...) {|h|
       ....
    }

I strongly suggest to call #start explicitly, with block, ALWAYS.
I did not test implicit #start hardly so it might cause strange
connection bugs.

Minero Aoki