1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Advertise HTTPS properly after a hot restart

This commit is contained in:
Evan Phoenix 2015-01-20 10:35:22 -08:00
parent 9fc65acee7
commit d13903ea51

View file

@ -252,7 +252,14 @@ module Puma
def inherited_ssl_listener(fd, ctx)
require 'puma/minissl'
s = TCPServer.for_fd(fd)
@ios << MiniSSL::Server.new(s, ctx)
ssl = MiniSSL::Server.new(s, ctx)
env = @proto_env.dup
env[HTTPS_KEY] = HTTPS
@envs[ssl] = env
@ios << ssl
s
end