On 28 Mar 2001, at 23:10, Ross Shaw wrote:

> Hi all,
> 
> I am trying to run some of the Net::HTTP similar to the PickAxe book
> as below
> 
> (snip)
> 
> However all I ever get with this (and all the other Net protocol
> examples) is the following:
> 
> /cygdrive/d/ruby/lib/ruby/1.6/net/protocol.rb:427:in `new': errno
> EALREADY triggered - "connect(2)"(Errno::EALREADY)
> 

Last weekend I happened to try the same, some Net::XXX testing. I 
got the same error as Ross (with Ruby 1.6.2 on Win NT SP5). For 
me, the first call succeeded, but on following calls I got the same 
error. I could reproduce it with something like this (IIRC):

	s = TCPSocket.new( 'www.rubycentral.com', 80 )
	s.close
	s = TCPSocket.new( 'www.rubycentral.com', 80 )
>> Error

TIA,
Pit