[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ruby/OpenSSL bug?

Nathaniel Talbott

11/12/2003 1:14:00 AM

The following program hangs indefinitely, blocking the whole script. I would
expect it to gracefully return an error.

require 'webrick'
require 'net/https'

s = WEBrick::HTTPServer.new(:Port => 5555)

s.mount_proc("/") do |req, resp|
resp.body = "Hi"
end

t = Thread.new do
s.start
end

h = Net::HTTP.new('localhost', 5555)
h.use_ssl = true
h.head('/')

s.stop
t.join

Note calling #head on an HTTP object pointing at an SSL server does fine.
I'm running:

ruby 1.8.1 (2003-10-31) [i386-linux]

Please let me know if there's any more information I can provide. It would
be great if this could be fixed before the release of 1.8.1.

Thanks,


Nathaniel

<:((><


2 Answers

GOTOU Yuuzou

11/12/2003 6:03:00 PM

0

GOTOU Yuuzou

11/12/2003 6:38:00 PM

0