--Multipart_Thu_Sep_26_18:32:42_2002-1
Content-Type: text/plain; charset=US-ASCII

Hi,

At Thu, 26 Sep 2002 05:43:40 +0900,
Robert McGovern wrote:
> It appears to have the same problem as the mswin32 version a second
> run also crashed out, but ran for 32 iterations. A third run also
> dropped out quickly, this time with the error

Hmmm, I tried the code in [ruby-talk:50993] with a little
modification, and got similar error.  I'll examin it.

51
52
53
54
C:/USR/lib/ruby/1.7/net/protocol.rb:576:in `write': Bad file descriptor (Errno::EBADF)
	from C:/USR/lib/ruby/1.7/net/protocol.rb:576:in `do_write'
	from C:/USR/lib/ruby/1.7/net/protocol.rb:559:in `writeline'
	from C:/USR/lib/ruby/1.7/net/protocol.rb:559:in `writing'
	from C:/USR/lib/ruby/1.7/net/protocol.rb:560:in `writeline'
	from C:/USR/lib/ruby/1.7/net/http.rb:1109:in `request'
	from C:/USR/lib/ruby/1.7/net/http.rb:1109:in `canonical_each'
	from C:/USR/lib/ruby/1.7/net/http.rb:935:in `each'
	from C:/USR/lib/ruby/1.7/net/http.rb:935:in `canonical_each'
	from C:/USR/lib/ruby/1.7/net/http.rb:1110:in `request'
	from C:/USR/lib/ruby/1.7/net/http.rb:1075:in `exec'
	from C:/USR/lib/ruby/1.7/net/http.rb:807:in `request'
	from badf.rb:19
	from badf.rb:18:in `start'
	from badf.rb:18


--Multipart_Thu_Sep_26_18:32:42_2002-1
Content-Type: text/x-ruby; charset=US-ASCII
Content-Disposition: attachment; filename="badf.rb"
Content-Transfer-Encoding: 7bit

#! /usr/bin/ruby
require 'net/http'
require 'uri'

# set up connection details for audiotron
uri  RI.parse(ARGV.shift)
req  et::HTTP::Get.new(uri.path)
address  et::HTTP.new(uri.host, uri.port)
req.basic_auth uri.user, uri.password

response  il

passes  

while true
  puts passes
  passes + 
  address.start { |http|
    response  ttp.request(req)
  }
  response  il

  sleep 5
end

--Multipart_Thu_Sep_26_18:32:42_2002-1
Content-Type: text/plain; charset=US-ASCII


-- 
Nobu Nakada

--Multipart_Thu_Sep_26_18:32:42_2002-1--