[#21736] OBJECTDAY 2000 — 助田 雅紀 <masaki.suketa@...>

助田です.

29 messages 2000/04/03
[#21748] Re: OBJECTDAY 2000 — keiju@... (石塚圭樹) 2000/04/04

けいじゅ@日本ラショナルソフトウェアです.

[#21753] Re: OBJECTDAY 2000 — Hideto ISHIBASHI <hideto-i@...4u.or.jp> 2000/04/05

石橋秀仁です。

[#21755] Re: OBJECTDAY 2000 — keiju@... (石塚圭樹) 2000/04/05

けいじゅ@日本ラショナルソフトウェアです.

[#21837] site_ruby & Linux distribution — OZAWA Sakuro <crouton@...>

小澤さくです。

14 messages 2000/04/10

[#21922] ruby-1.4.4 binary for BeOS 5 (Intel) — tenmei@... (Noriaki Harada)

はらだです。

23 messages 2000/04/15
[#21923] Re: ruby-1.4.4 binary for BeOS 5 (Intel) — NAITOH Jun <naitoh@...> 2000/04/15

はじめまして、内藤と申します。

[#21926] Re: ruby-1.4.4 binary for BeOS 5 (Intel) — tenmei@... (Noriaki Harada) 2000/04/16

>はじめまして、内藤と申します。

[#21930] Re: ruby-1.4.4 binary for BeOS 5 (Intel) — NAITOH Jun <naitoh@...> 2000/04/16

内藤です。

[#21968] Re: ruby-1.4.4 binary for BeOS 5 (Intel) — Katsuyuki Komatsu <komatsu@...> 2000/04/17

小松です。

[#21969] Re: ruby-1.4.4 binary for BeOS 5 (Intel) — NAITOH Jun <naitoh@...> 2000/04/17

再び内藤です。

[#21956] Thread & STDIN — Masato Toyoshima <mt@...>

はじめまして、豊島といいます。

16 messages 2000/04/17

[#21981] rd2man — WATANABE Hirofumi <eban@...>

わたなべです.

29 messages 2000/04/18
[#21982] Re: rd2man — Toshiro Kuwabara <toshirok@...3.so-net.ne.jp> 2000/04/18

Toshです。

[#21985] Re: rd2man — WATANABE Hirofumi <Hirofumi.Watanabe@...> 2000/04/19

わたなべです.

[#22036] Re: rd2man — Wakou Aoyama <wakou@...> 2000/04/20

青山です。

[#22040] Re: rd2man — Toshiro Kuwabara <toshirok@...3.so-net.ne.jp> 2000/04/21

Toshです。

[#22014] shell interactive — WATANABE Daisaku <dwata@...3.rim.or.jp>

31 messages 2000/04/20
[#22016] Re: shell interactive — 時田幸粋 <ktokita@...> 2000/04/20

こんにちは、時田です。

[#22017] Re: shell interactive — nobu.nakada@... 2000/04/20

なかだです。

[#22018] Re: shell interactive — WATANABE Hirofumi <Hirofumi.Watanabe@...> 2000/04/20

わたなべです.

[#22027] Re: shell interactive — 時田幸粋 <ktokita@...> 2000/04/20

こんにちは、時田です。

[#22103] Please put ruby-1.4.4.tar.gz in pub/lang/ruby/1.4/ — "Akinori -Aki- MUSHA" <knu@...>

 お願いがあるのですが、 ruby-1.4.4.tar.gz を FTP ツリーの 1.4/

16 messages 2000/04/25
[#22199] Where to put ruby-i.j.k.tar.gz on? (Re: ) — SUGIHARA Hiroshi <maili31s@...> 2000/04/28

[ruby-list:22103]におきまして、2000/04/25 12:38ほどに、

[#22117] StateGraph: state machine interpreter — Hideto ISHIBASHI <hideto-i@...4u.or.jp>

石橋 "rubyholic" 秀仁です。

16 messages 2000/04/25

[#22159] $LOAD_PATH への追加について — "Sugawara Hajime" <sugawara@...>

 はじめまして、菅原@ホビー・データです。

13 messages 2000/04/27

[#22181] Can't Use optparse — Yamada Kenji <kyamada@...>

28 messages 2000/04/28
[#22186] Re: Can't Use optparse — akira yamada / やまだあきら <akira@...> 2000/04/28

[#22195] Re: Can't Use optparse — Toshiro Kuwabara <toshirok@...3.so-net.ne.jp> 2000/04/28

Toshです。

[#22261] Re: Can't Use optparse — nobu.nakada@... 2000/05/04

なかだです。

[#22264] Re: Can't Use optparse — Toshiro Kuwabara <toshirok@...3.so-net.ne.jp> 2000/05/04

Toshです。

[#22270] Re: Can't Use optparse — nobu.nakada@... 2000/05/04

なかだです。

[#22272] Re: Can't Use optparse — Toshiro Kuwabara <toshirok@...3.so-net.ne.jp> 2000/05/04

Toshです。

[#22300] Re: Can't Use optparse — Koji Arai <JCA02266@...> 2000/05/05

新井です。

[ruby-list:22048] Re: net/http

From: Katsuyuki Komatsu <komatsu@...>
Date: 2000-04-21 13:36:03 UTC
List: ruby-list #22048
小松です。

ログが大きいのでだいぶ長くなってしまいました。

In the message of [ruby-list:22045] Re: net/http
    on 2000/4/21 18:48:56 Minero Aoki <aamine@dp.u-netsurf.ne.jp> wrote:
> > ところで、net-1.1.14でこのhttphead.rbを使って、
> >   httphead.rb http://www.ruby-lang.org/ja/index.html
> > を何回か繰り返していると、Errno::EPIPEが上がってきたり
> > こなかったりするのですが、こういうもの?
> > 
> > Proxyのせいかな?
> > 
> > 以下のログを取った時には4回実行して3回失敗しました。
> 
> うーん、とりあえず添付ひとつめのパッチでどうでしょうか?

今度は、EOFErrorも出るようになりました。
いまのところすべて失敗です。

□EOFError例

% httphead.rb http://www.ruby-lang.org/ja/index.html
headers:
 connection: close
 accept-ranges: bytes
 etag: "a6804-16c9-38ffbec3"
 last-modified: Fri, 21 Apr 2000 02:36:51 GMT
 server: Apache/1.3.9 (Unix) Debian/GNU mod_ruby/0.1.4 Ruby/1.4.3(1999-12-08)
 content-length: 5833
 date: Fri, 21 Apr 2000 10:19:01 GMT
 content-type: text/html
/usr/local/lib/ruby/1.4/net/protocol.rb:536:in `sysread': End of file reached (EOFError)
	from /usr/local/lib/ruby/1.4/net/protocol.rb:536:in `fill_rbuf'
	from /usr/local/lib/ruby/1.4/net/protocol.rb:481:in `readuntil'
	from /usr/local/lib/ruby/1.4/net/protocol.rb:491:in `readline'
	from /usr/local/lib/ruby/1.4/net/http.rb:608:in `get_reply'
	from /usr/local/lib/ruby/1.4/net/http.rb:489:in `get_response'
	from /usr/local/lib/ruby/1.4/net/http.rb:540:in `get_response_no_body'
	from /usr/local/lib/ruby/1.4/net/http.rb:179:in `head2'
	from /usr/local/lib/ruby/1.4/net/http.rb:177:in `connecting'
	from /usr/local/lib/ruby/1.4/net/http.rb:177:in `head2'
	from /usr/local/lib/ruby/1.4/net/http.rb:236:in `do_finish'
	from /usr/local/lib/ruby/1.4/net/protocol.rb:177:in `finish'
	from /usr/local/lib/ruby/1.4/net/protocol.rb:170:in `start'
	from /usr/local/lib/ruby/1.4/net/protocol.rb:79:in `start'
	from httphead.rb:15
% 

□Errno::EPIPE例

% httphead.rb http://www.ruby-lang.org/ja/index.html
headers:
 connection: close
 accept-ranges: bytes
 etag: "a6804-16c9-38ffbec3"
 last-modified: Fri, 21 Apr 2000 02:36:51 GMT
 server: Apache/1.3.9 (Unix) Debian/GNU mod_ruby/0.1.4 Ruby/1.4.3(1999-12-08)
 content-length: 5833
 date: Fri, 21 Apr 2000 10:19:09 GMT
 content-type: text/html
/usr/local/lib/ruby/1.4/net/protocol.rb:691:in `write': Broken pipe (Errno::EPIPE)
	from /usr/local/lib/ruby/1.4/net/protocol.rb:691:in `do_write_do'
	from /usr/local/lib/ruby/1.4/net/protocol.rb:561:in `writeline'
	from /usr/local/lib/ruby/1.4/net/http.rb:557:in `request'
	from /usr/local/lib/ruby/1.4/net/http.rb:556:in `each'
	from /usr/local/lib/ruby/1.4/net/http.rb:556:in `request'
	from /usr/local/lib/ruby/1.4/net/http.rb:462:in `head'
	from /usr/local/lib/ruby/1.4/net/http.rb:178:in `head2'
	from /usr/local/lib/ruby/1.4/net/http.rb:177:in `connecting'
	from /usr/local/lib/ruby/1.4/net/http.rb:177:in `head2'
	from /usr/local/lib/ruby/1.4/net/http.rb:236:in `do_finish'
	from /usr/local/lib/ruby/1.4/net/protocol.rb:177:in `finish'
	from /usr/local/lib/ruby/1.4/net/protocol.rb:170:in `start'
	from /usr/local/lib/ruby/1.4/net/protocol.rb:79:in `start'
	from httphead.rb:15
% 

> それでもだめな場合は、ふたつめのパッチのように httphead.rb を
> 変更した時の stderr の出力を見せていただけるとわかるかもしれません。

> --- org.httphead.rb	Fri Apr 21 18:26:05 2000
> +++ httphead.rb	Fri Apr 21 18:32:00 2000

このパッチだと、NameErrorになります。

httphead.rb:18: undefined method `head2' for nil (NameError)
	from httphead.rb:17:in `start'
	from httphead.rb:17

こうかな?

--- httphead.rb-22001	Thu Apr 20 00:09:00 2000
+++ httphead.rb	Fri Apr 21 19:39:00 2000
@@ -13,4 +13,6 @@
 proxy = Net::HTTP::Proxy($p_host, $p_port)
+http = proxy.new(host, port)
+http.set_pipe $stderr
 
-proxy.start(host, port) do |http|
+http.start do
   header = http.head2( path )

で、こんな感じです。

□Errno::EPIPE例

% httphead.rb http://www.ruby-lang.org/ja/index.html
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.1 200 OK\r\n"
read  "Date: Fri, 21 Apr 2000 10:33:00 GMT\r\n"
read  "Server: Apache/1.3.9 (Unix) Debian/GNU mod_ruby/0.1.4 Ruby/1.4.3(1999-12-08)\r\n"
read  "Last-modified: Fri, 21 Apr 2000 02:36:51 GMT\r\n"
read  "Etag: "a6804-16c9-38ffbec3"\r\n"
read  "Accept-ranges: bytes\r\n"
read  "Content-length: 5833\r\n"
read  "Connection: close\r\n"
read  "Content-type: text/html\r\n"
read  "\r\n"
headers:
 connection: close
 accept-ranges: bytes
 etag: "a6804-16c9-38ffbec3"
 last-modified: Fri, 21 Apr 2000 02:36:51 GMT
 server: Apache/1.3.9 (Unix) Debian/GNU mod_ruby/0.1.4 Ruby/1.4.3(1999-12-08)
 content-length: 5833
 date: Fri, 21 Apr 2000 10:33:00 GMT
 content-type: text/html
write "HEAD http://www.ruby-lang.org/ HTTP/1.1\r\n"
/usr/local/lib/ruby/1.4/net/protocol.rb:691:in `write': Broken pipe (Errno::EPIPE)
	from /usr/local/lib/ruby/1.4/net/protocol.rb:691:in `do_write_do'
	from /usr/local/lib/ruby/1.4/net/protocol.rb:561:in `writeline'
	from /usr/local/lib/ruby/1.4/net/http.rb:557:in `request'
	from /usr/local/lib/ruby/1.4/net/http.rb:556:in `each'
	from /usr/local/lib/ruby/1.4/net/http.rb:556:in `request'
	from /usr/local/lib/ruby/1.4/net/http.rb:462:in `head'
	from /usr/local/lib/ruby/1.4/net/http.rb:178:in `head2'
	from /usr/local/lib/ruby/1.4/net/http.rb:177:in `connecting'
	from /usr/local/lib/ruby/1.4/net/http.rb:177:in `head2'
	from /usr/local/lib/ruby/1.4/net/http.rb:236:in `do_finish'
	from /usr/local/lib/ruby/1.4/net/protocol.rb:177:in `finish'
	from /usr/local/lib/ruby/1.4/net/protocol.rb:170:in `start'
	from httphead.rb:18
% 

□EOFError例

% httphead.rb http://www.ruby-lang.org/ja/index.html
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.1 200 OK\r\n"
read  "Date: Fri, 21 Apr 2000 10:53:04 GMT\r\n"
read  "Server: Apache/1.3.9 (Unix) Debian/GNU mod_ruby/0.1.4 Ruby/1.4.3(1999-12-08)\r\n"
read  "Last-modified: Fri, 21 Apr 2000 02:36:51 GMT\r\n"
read  "Etag: "a6804-16c9-38ffbec3"\r\n"
read  "Accept-ranges: bytes\r\n"
read  "Content-length: 5833\r\n"
read  "Connection: close\r\n"
read  "Content-type: text/html\r\n"
read  "\r\n"
headers:
 connection: close
 accept-ranges: bytes
 etag: "a6804-16c9-38ffbec3"
 last-modified: Fri, 21 Apr 2000 02:36:51 GMT
 server: Apache/1.3.9 (Unix) Debian/GNU mod_ruby/0.1.4 Ruby/1.4.3(1999-12-08)
 content-length: 5833
 date: Fri, 21 Apr 2000 10:53:04 GMT
 content-type: text/html
write "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"
/usr/local/lib/ruby/1.4/net/protocol.rb:536:in `sysread': End of file reached (EOFError)
	from /usr/local/lib/ruby/1.4/net/protocol.rb:536:in `fill_rbuf'
	from /usr/local/lib/ruby/1.4/net/protocol.rb:481:in `readuntil'
	from /usr/local/lib/ruby/1.4/net/protocol.rb:491:in `readline'
	from /usr/local/lib/ruby/1.4/net/http.rb:608:in `get_reply'
	from /usr/local/lib/ruby/1.4/net/http.rb:489:in `get_response'
	from /usr/local/lib/ruby/1.4/net/http.rb:540:in `get_response_no_body'
	from /usr/local/lib/ruby/1.4/net/http.rb:179:in `head2'
	from /usr/local/lib/ruby/1.4/net/http.rb:177:in `connecting'
	from /usr/local/lib/ruby/1.4/net/http.rb:177:in `head2'
	from /usr/local/lib/ruby/1.4/net/http.rb:236:in `do_finish'
	from /usr/local/lib/ruby/1.4/net/protocol.rb:177:in `finish'
	from /usr/local/lib/ruby/1.4/net/protocol.rb:170:in `start'
	from httphead.rb:18
% 

--
小松克行 / Katsuyuki Komatsu <komatsu@sarion.co.jp>

In This Thread