[#4766] Wiki — "Glen Stampoultzis" <trinexus@...>

21 messages 2000/09/04
[#4768] RE: Wiki — "NAKAMURA, Hiroshi" <nahi@...> 2000/09/04

Hi, Glen,

[#4783] Re: Wiki — Masatoshi SEKI <m_seki@...> 2000/09/04

[#4785] Re: Wiki — "NAKAMURA, Hiroshi" <nakahiro@...> 2000/09/05

Howdy,

[#4883] Re-binding a block — Dave Thomas <Dave@...>

16 messages 2000/09/12

[#4930] Perl 6 rumblings -- RFC 225 (v1) Data: Superpositions — Conrad Schneiker <schneik@...>

Hi,

11 messages 2000/09/15

[#4936] Ruby Book Eng. translation editor's questions — Jon Babcock <jon@...>

20 messages 2000/09/16

[#5045] Proposal: Add constants to Math — Robert Feldt <feldt@...>

15 messages 2000/09/21

[#5077] Crazy idea? infix method calls — hal9000@...

This is a generalization of the "in" operator idea which I

17 messages 2000/09/22

[#5157] Compile Problem with 1.6.1 — Scott Billings <aerogems@...>

When I try to compile Ruby 1.6.1, I get the following error:

15 messages 2000/09/27

[ruby-talk:5034] RE: Having problems with Net::HTTP::do_finish

From: Aleksi Niemel<aleksi.niemela@...>
Date: 2000-09-20 17:49:07 UTC
List: ruby-talk #5034
Dan reports:
> I just started using Ruby yesterday, and I'm having trouble with my
> first real program.  The following minimal example demonstrates the
> problem I'm encountering:
> 
> -- foo.rb --
> require 'net/http'
> Net::HTTP.start ('www.ruby-lang.org') { |x| }
> 
> -- results --
> d:/src $ ruby foo.rb 
> C:/APP/RUBY/lib/ruby/1.6/net/protocol.rb:578:in `sysread': 
> End of file reached (EOFError)
> 	from C:/APP/RUBY/lib/ruby/1.6/net/protocol.rb:578:in `fill_rbuf'
> 	from C:/APP/RUBY/lib/ruby/1.6/net/protocol.rb:523:in `readuntil'
> 	from C:/APP/RUBY/lib/ruby/1.6/net/protocol.rb:533:in `readline'
> 	from C:/APP/RUBY/lib/ruby/1.6/net/http.rb:751:in `get_reply'
> 	from C:/APP/RUBY/lib/ruby/1.6/net/http.rb:626:in `get_response'
> 	from C:/APP/RUBY/lib/ruby/1.6/net/http.rb:359:in `connecting'
> 	from C:/APP/RUBY/lib/ruby/1.6/net/http.rb:299:in `head2'
> 	from C:/APP/RUBY/lib/ruby/1.6/net/http.rb:340:in `do_finish'
> 	from C:/APP/RUBY/lib/ruby/1.6/net/protocol.rb:179:in `finish'
> 	from C:/APP/RUBY/lib/ruby/1.6/net/protocol.rb:172:in `start'
> 	from C:/APP/RUBY/lib/ruby/1.6/net/http.rb:236:in `start'
> 	from foo.rb:3
> 
> d:/src $ ruby -v
> ruby 1.6.0 (2000-09-19) [i586-mswin32]

If it helps you at all, I might say that you're probably not alone with your
problem.

To me it seems that Katsuyuki Komatsu reports the same problem on entirely
different platform at "[ruby-dev:10985] httphead.rb proxy version problem".

  http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/10985

Appended is a copy of something I could read from the mail (sorry if the
copy of japanese part is messed up).

	- Aleksi


?????????????[ruby-list:22001]?proxy???
httphead.rb????Ruby 1.6.0???????????????????
net?ruby?????????????

???????^C????????


% ruby -v httphead.rb http://www.ruby-lang.org/ja/index.html
ruby 1.6.0 (2000-09-19) [sparc-solaris2.5.1]
^C/usr/local/lib/ruby/1.6/net/protocol.rb:578:in `sysread': End of file
reached (EOFError)
	from /usr/local/lib/ruby/1.6/net/protocol.rb:578:in `fill_rbuf'
	from /usr/local/lib/ruby/1.6/net/protocol.rb:523:in `readuntil'
	from /usr/local/lib/ruby/1.6/net/protocol.rb:533:in `readline'
	from /usr/local/lib/ruby/1.6/net/http.rb:751:in `get_reply'
	from /usr/local/lib/ruby/1.6/net/http.rb:626:in `get_response'
	from /usr/local/lib/ruby/1.6/net/http.rb:359:in `connecting'
	from /usr/local/lib/ruby/1.6/net/http.rb:299:in `head2'
	from /usr/local/lib/ruby/1.6/net/http.rb:340:in `do_finish'
	from /usr/local/lib/ruby/1.6/net/protocol.rb:179:in `finish'
	from /usr/local/lib/ruby/1.6/net/protocol.rb:172:in `start'
	from /usr/local/lib/ruby/1.6/net/http.rb:236:in `start'
	from httphead.rb:14
% 


1.4.6???????????


% ruby-1.4.6 -v httphead.rb http://www.ruby-lang.org/ja/index.html
ruby 1.4.6 (2000-08-30) [sparc-solaris2.5.1]
headers:
 proxy-connection: keep-alive
 accept-ranges: bytes
 etag: "a680a-1c27-39c72ebc"
 last-modified: Tue, 19 Sep 2000 09:15:40 GMT
 age: 66227
 server: Apache/1.3.12 (Unix) Debian/GNU mod_ruby/0.2.0
Ruby/1.4.6(2000-08-24)
 x-cache: HIT from ❾
 content-length: 7207
 date: Tue, 19 Sep 2000 09:23:01 GMT
 content-type: text/html; charset=iso-2022-jp
% 


[ruby-list:22045]???????????????????????
?????????????????


ruby -v httphead.rb-22045 http://www.ruby-lang.org/ja/index.html
ruby 1.6.0 (2000-09-19) [sparc-solaris2.5.1]
write "HEAD http://www.ruby-lang.org/ja/index.html HTTP/1.1\r\n"
write "Accept: */*\r\n"
write "Host: ❾\r\n"
write "Connection: Keep-Alive\r\n"
write "\r\n"
read  "HTTP/1.0 200 OK\r\n"
read  "Date: Tue, 19 Sep 2000 09:23:01 GMT\r\n"
read  "Server: Apache/1.3.12 (Unix) Debian/GNU mod_ruby/0.2.0
Ruby/1.4.6(2000-08
-24)\r\n"
read  "Last-Modified: Tue, 19 Sep 2000 09:15:40 GMT\r\n"
read  "ETag: "a680a-1c27-39c72ebc"\r\n"
read  "Accept-Ranges: bytes\r\n"
read  "Content-Length: 7207\r\n"
read  "Content-Type: text/html; charset=iso-2022-jp\r\n"
read  "Age: 66684\r\n"
read  "X-Cache: HIT from ❾\r\n"
read  "Proxy-Connection: keep-alive\r\n"
read  "\r\n" ? ????????????????^C?????
^Cwrite "HEAD http://www.ruby-lang.org/ HTTP/1.1\r\n"
write "Accept: */*\r\n"
write "Host: ❾\r\n"
write "Connection: close\r\n"
write "\r\n"
read  "HTTP/1.0 301 Moved Permanently\r\n"
read  "Date: Wed, 20 Sep 2000 10:20:03 GMT\r\n"
read  "Server: Apache/1.3.12 (Unix) Debian/GNU mod_ruby/0.2.0
Ruby/1.4.6(2000-08
-24)\r\n"
read  "Location: http://www.ruby-lang.org/en/index.html\r\n"
read  "Content-Type: text/html; charset=iso-8859-1\r\n"
read  "X-Cache: MISS from ❾\r\n"
read  "Proxy-Connection: close\r\n"
read  "\r\n"
/usr/local/lib/ruby/1.6/net/protocol.rb:578:in `sysread': End of file
reached (EOFError)
	from /usr/local/lib/ruby/1.6/net/protocol.rb:578:in `fill_rbuf'
	from /usr/local/lib/ruby/1.6/net/protocol.rb:523:in `readuntil'
	from /usr/local/lib/ruby/1.6/net/protocol.rb:533:in `readline'
	from /usr/local/lib/ruby/1.6/net/http.rb:751:in `get_reply'
	from /usr/local/lib/ruby/1.6/net/http.rb:626:in `get_response'
	from /usr/local/lib/ruby/1.6/net/http.rb:359:in `connecting'
	from /usr/local/lib/ruby/1.6/net/http.rb:299:in `head2'
	from /usr/local/lib/ruby/1.6/net/http.rb:340:in `do_finish'
	from /usr/local/lib/ruby/1.6/net/protocol.rb:179:in `finish'
	from /usr/local/lib/ruby/1.6/net/protocol.rb:172:in `start'
	from httphead.rb-22045:16


In This Thread

Prev Next