Merge "Pass parameters when create eventlet.wsgi server"

This commit is contained in:
Jenkins 2017-04-17 05:35:54 +00:00 committed by Gerrit Code Review
commit 19a069d99f
4 changed files with 7 additions and 1 deletions

View File

@ -421,4 +421,5 @@ class UnixDomainWSGIServer(wsgi.Server):
application,
max_size=self.num_threads,
protocol=UnixDomainHttpProtocol,
log=logger)
log=logger,
log_format=cfg.CONF.wsgi_log_format)

View File

@ -19,6 +19,7 @@ import mock
import six
import testtools
from oslo_config import cfg
import oslo_i18n
from neutron.agent.linux import utils
@ -521,6 +522,7 @@ class TestUnixDomainWSGIServer(base.BaseTestCase):
'app',
protocol=utils.UnixDomainHttpProtocol,
log=mock.ANY,
log_format=cfg.CONF.wsgi_log_format,
max_size=self.server.num_threads
)
@ -535,5 +537,6 @@ class TestUnixDomainWSGIServer(base.BaseTestCase):
'app',
protocol=utils.UnixDomainHttpProtocol,
log=mock.ANY,
log_format=cfg.CONF.wsgi_log_format,
max_size=num_threads
)

View File

@ -205,6 +205,7 @@ class TestWSGIServer(base.BaseTestCase):
max_size=server.num_threads,
log=mock.ANY,
keepalive=CONF.wsgi_keep_alive,
log_format=CONF.wsgi_log_format,
socket_timeout=server.client_socket_timeout
)

View File

@ -221,6 +221,7 @@ class Server(object):
max_size=self.num_threads,
log=LOG,
keepalive=CONF.wsgi_keep_alive,
log_format=CONF.wsgi_log_format,
socket_timeout=self.client_socket_timeout)