From: GOTOU Yuuzou Date: 2001-10-12T06:00:42+09:00 Subject: [ruby-talk:22444] Re: Problems with net/https :( In message <20011010200453.A21426@bluenugget.net>, `Jason DiCioccio ' wrote: > On Thu, Oct 11, 2001 at 11:31:38AM +0900, GOTOU Yuuzou wrote: > > I think (not condensed) your sample code works fine. > > # I may be misunderstanding something. > > I'm not sure what you mean.. The first get2 block succeeds while the second > one fails. This does not happen when not using HTTPS.. Sorry. In last message I want to explain the difference of behaviour of HTTP.start and HTTP#start with HTTPS. The follow code does not work (it writes plain HTTP request to SSL connection): HTTP.start(host, port){|h| h.use_ssl = true h.get2{|repl| ... } } use_ssl must be set before HTTP#start is called. http = HTTP.new(host, port) http.use_ssl = true http.start{|h| h.get2{|repl| ... } } > This is on Solaris > 2.8/sparc.. It seems like a bug to me, but I can't be sure. I'm just looking > for a somewhat clean workaround or an acknowledgement that this is indeed > a bug and a patch or something to fix it if possible :).. Just a way to make > it work without recreating the HTTP Session object every time I need to do a > get2 :) I cannot reproduce here. Do you know where the process blocks? And I want to see the workaround. -- Gotoyuzo