N
Nathaniel Talbott
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.newPort => 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
<(><
expect it to gracefully return an error.
require 'webrick'
require 'net/https'
s = WEBrick::HTTPServer.newPort => 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
<(><