mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Fixes #1135
This commit is contained in:
parent
821123d48f
commit
b4e86ad73f
@ -3,6 +3,7 @@
|
|||||||
# This file is part of gunicorn released under the MIT license.
|
# This file is part of gunicorn released under the MIT license.
|
||||||
# See the NOTICE for more information.
|
# See the NOTICE for more information.
|
||||||
|
|
||||||
|
import copy
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
@ -102,8 +103,13 @@ class TornadoWorker(Worker):
|
|||||||
server_class = _HTTPServer
|
server_class = _HTTPServer
|
||||||
|
|
||||||
if self.cfg.is_ssl:
|
if self.cfg.is_ssl:
|
||||||
|
_ssl_opt = copy.deepcopy(self.cfg.ssl_options)
|
||||||
|
# tornado refuses initialization if ssl_options contains following
|
||||||
|
# options
|
||||||
|
del _ssl_opt["do_handshake_on_connect"]
|
||||||
|
del _ssl_opt["suppress_ragged_eofs"]
|
||||||
server = server_class(app, io_loop=self.ioloop,
|
server = server_class(app, io_loop=self.ioloop,
|
||||||
ssl_options=self.cfg.ssl_options)
|
ssl_options=_ssl_opt)
|
||||||
else:
|
else:
|
||||||
server = server_class(app, io_loop=self.ioloop)
|
server = server_class(app, io_loop=self.ioloop)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user