[#1816] Ruby 1.5.3 under Tru64 (Alpha)? — Clemens Hintze <clemens.hintze@...>

Hi all,

17 messages 2000/03/14

[#1989] English Ruby/Gtk Tutorial? — schneik@...

18 messages 2000/03/17

[#2241] setter() for local variables — ts <decoux@...>

18 messages 2000/03/29

[ruby-talk:01711] [Ruby] net/http requires an explicit call to Protocol#start

From: Dave Thomas <Dave@...>
Date: 2000-03-04 02:40:28 UTC
List: ruby-talk #1711
The following message is a courtesy copy of an article
that has been posted to comp.lang.misc as well.


I don't know if this is intended or not, but to use net/http, you have 
to do

   h = Net::HTTP.new('host')
   h.start
   h.get('....')

The code in Net::HTTP#connecting handles the case where a socket is
closed, attempting to reopen it, but doesn't seem to handle the case
where a socket has not yet been created (hence the call to .start). Is 
this deliberate?

Dave

In This Thread

Prev Next