-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
Hello,
I'm getting a segmentation fault when adding an SSL socket with a Puma::MiniSSL::Context that's missing #key and #cert on both Linux and Windows (tested on 64bit only).
require 'puma'
class HelloWorld
def call( env )
[
200,
{
"Content-Type" => "text/html"
},
["Hello World!"]
]
end
end
server = Puma::Server.new( HelloWorld.new )
server.min_threads = 0
server.max_threads = 16
options = {
bind: '0.0.0.0',
port: 9999
}
ctx = Puma::MiniSSL::Context.new
server.binder.add_ssl_listener( options[:bind], options[:port], ctx )
puts "Listening on https://#{options[:bind]}:#{options[:port]}"
begin
server.run.join
rescue Interrupt => e
server.stop( true )
endTrigger with:
curl https://127.0.0.1:9999
I realise this the wrong setup, but failing gracefully would be preferable to a segfault.
Cheers,
Tasos L.
Metadata
Metadata
Assignees
Labels
No labels