[#35592] String#center — Take_tk <ggb03124@...>

 仕様拡張のお願い。と言うほどのものでもないですが・・

33 messages 2002/07/20
[#35593] Re: String#center — Kazuhiro NISHIYAMA <zn@...> 2002/07/20

西山和広です。

[#35596] Re: String#center — Take_tk <ggb03124@...> 2002/07/20

たけ(tk)です。

[#35597] Re: String#center — Kazuhiro NISHIYAMA <zn@...> 2002/07/20

西山和広です。

[#35599] Rational#to_int ← String#center — Take_tk <ggb03124@...> 2002/07/21

たけ(tk)です。

[#35601] Re: Rational#to_int ← String#center — matz@... (Yukihiro Matsumoto) 2002/07/21

まつもと ゆきひろです

[#35618] new mathn [Re: Rational#to_int ← String#center] — keiju@... (石塚圭樹) 2002/07/23

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

[#35624] Re: new mathn [Re: Rational#to_int ← String#center] — matz@... (Yukihiro Matsumoto) 2002/07/24

まつもと ゆきひろです

[#35628] Re: new mathn [Re: Rational#to_int ← String#center] — keiju@... (石塚圭樹) 2002/07/24

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

[#35630] Re: new mathn [Re: Rational#to_int ← String#center] — matz@... (Yukihiro Matsumoto) 2002/07/24

まつもと ゆきひろです

[ruby-list:35634] HTTP セッションのタイムアウト

From: 杉原 透修 <sugihara@...>
Date: 2002-07-26 02:34:03 UTC
List: ruby-list #35634
杉原と申します。

現在、下記のようなプログラムを利用しサーバとの
通信で得られた情報をHTMLではくといったことを
行っております。
----------------------------------------------------------------
(略)
Net::HTTP.version_1_1
http = Net::HTTP.new( @host, @port, @proxy_host, @proxy_port );

http.open_timeout=1000;
http.read_timeout=1000;

http.start do |http|
	response , = http.get( @path )
end
(略)
----------------------------------------------------------------

上記プログラムは4分以内の通信の場合は正常動作するのですが、
通信が約4分を超えるとtimeoutの設定とは別に
以下のメッセージが表示され落ちてしまいます。
----------------------------------------------------------------
/usr/local/lib/ruby/1.6/net/protocol.rb:231:in `error!': 503 Service Unavailable
 (Net::ProtoServerError)
        from /usr/local/lib/ruby/1.6/net/http.rb:1238:in `value'
        from /usr/local/lib/ruby/1.6/net/http.rb:576:in `get'
        from test.rb:41
        from test.rb:40:in `start'
        from /usr/local/lib/ruby/1.6/net/http.rb:456:in `start'
        from test.rb:40
----------------------------------------------------------------

<環境>
OS:Red Hat Linux 6.1J
ruby:1.6.6

ちなみにapacheのTimeoutも4分以上に設定しております。

どなたか回避方法をご存知のかた、いらっしゃいましたら
教えていただけないでしょうか?

よろしくお願いします。

In This Thread

Prev Next