You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'classHelloWorlddefcall(env)[200,{"Content-Type"=>"text/html"},["Hello World!"]]endendserver=Puma::Server.new(HelloWorld.new)server.min_threads=0server.max_threads=16options={bind: '0.0.0.0',port: 9999}ctx=Puma::MiniSSL::Context.newserver.binder.add_ssl_listener(options[:bind],options[:port],ctx)puts"Listening on https://#{options[:bind]}:#{options[:port]}"beginserver.run.joinrescueInterrupt=>eserver.stop(true)end
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).Trigger with:
Dump at: https://gist.github.com/Zapotek/c4ef4bed265793d72a94
I realise this the wrong setup, but failing gracefully would be preferable to a segfault.
Cheers,
Tasos L.
The text was updated successfully, but these errors were encountered: