[#23332] to_str再考 — matz@... (Yukihiro Matsumoto)

まつもと ゆきひろです

15 messages 2004/04/05

[#23380] [SEGV] make test-all (bccwin32 ruby1.9.0) — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>

山本です。

17 messages 2004/04/15
[#23400] Re: [SEGV] make test-all (bccwin32 ruby1.9.0) — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2004/04/16

山本です。落ちる場所がわかりました。

[#23402] Re: [SEGV] make test-all (bccwin32 ruby1.9.0) — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2004/04/16

山本です。

[#23403] Re: [SEGV] make test-all (bccwin32 ruby1.9.0) — nobu.nakada@... 2004/04/16

なかだです。

[#23405] Re: [SEGV] make test-all (bccwin32 ruby1.9.0) — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2004/04/16

山本です。

[#23407] Re: [SEGV] make test-all (bccwin32 ruby1.9.0) — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2004/04/16

山本です。

[ruby-dev:23379] https proxy problem

From: Tanaka Akira <akr@...17n.org>
Date: 2004-04-15 03:43:15 UTC
List: ruby-dev #23379
net/https で proxy が動かないように思います。

% strace -o/tmp/1 ruby -rnet/https <<'EE'
    http = Net::HTTP.new('javacc.dev.java.net', 443, proxy_host, proxy_port)
    http.use_ssl = true
    http.start {
      http.request_get('/') {|res|
        print res.body
      }
    }
EE
warning: peer certificate won't be verified in this SSL session
/home/akr/ruby/lib/ruby/1.9/net/http.rb:461:in `connect': OpenSSL::SSL::SSLError        from /home/akr/ruby/lib/ruby/1.9/net/http.rb:461:in `connect'
        from /home/akr/ruby/lib/ruby/1.9/net/http.rb:445:in `do_start'
        from /home/akr/ruby/lib/ruby/1.9/net/http.rb:434:in `start'
        from -:3

ここで、strace の結果を覗くと proxy_host に接続してはいるのですが、そ
の通信の中身が

write(5, "\200|\1\3\1\0c\0\0\0\20\0\0009\0\0008\0\0005\0\0\26\0\0"..., 126) = 126

というように SSL な内容をいきなり送っている感じです。
CONNECT という文字列はどこにも現われません。

proxy を使わずに次のようにすると問題なくアクセスできます。つまり、
server が変ということはないと思います。

% ruby -rnet/https <<'EE'
    http = Net::HTTP.new('javacc.dev.java.net', 443)
    http.use_ssl = true
    http.start {
      http.request_get('/') {|res|
        print res.body
      }
    }
EE

また、w3m でも次のようにするとちゃんとアクセスでき、strace で通信内容
を覗いてみると CONNECT を使っています。つまり、proxy が変ということも
ないと思います。

% https_proxy=http://proxy_host:proxy_port/ w3m https://javacc.dev.java.net/
-- 
[田中 哲][たなか あきら][Tanaka Akira]

In This Thread

Prev Next