Merge "Raise max header size to accommodate large tokens"
This commit is contained in:
commit
e172ee1c36
@ -266,6 +266,9 @@ notification_driver = neutron.openstack.common.notifier.rpc_notifier
|
|||||||
# Number of backlog requests to configure the socket with.
|
# Number of backlog requests to configure the socket with.
|
||||||
# backlog = 4096
|
# backlog = 4096
|
||||||
|
|
||||||
|
# Max header line to accommodate large tokens
|
||||||
|
# max_header_line = 16384
|
||||||
|
|
||||||
# Enable SSL on the API server
|
# Enable SSL on the API server
|
||||||
# use_ssl = False
|
# use_ssl = False
|
||||||
|
|
||||||
|
@ -58,6 +58,9 @@ socket_opts = [
|
|||||||
cfg.IntOpt('retry_until_window',
|
cfg.IntOpt('retry_until_window',
|
||||||
default=30,
|
default=30,
|
||||||
help=_("Number of seconds to keep retrying to listen")),
|
help=_("Number of seconds to keep retrying to listen")),
|
||||||
|
cfg.IntOpt('max_header_line',
|
||||||
|
default=16384,
|
||||||
|
help=_("Max header line to accommodate large tokens")),
|
||||||
cfg.BoolOpt('use_ssl',
|
cfg.BoolOpt('use_ssl',
|
||||||
default=False,
|
default=False,
|
||||||
help=_('Enable SSL on the API server')),
|
help=_('Enable SSL on the API server')),
|
||||||
@ -110,6 +113,8 @@ class Server(object):
|
|||||||
"""Server class to manage multiple WSGI sockets and applications."""
|
"""Server class to manage multiple WSGI sockets and applications."""
|
||||||
|
|
||||||
def __init__(self, name, threads=1000):
|
def __init__(self, name, threads=1000):
|
||||||
|
# Raise the default from 8192 to accommodate large tokens
|
||||||
|
eventlet.wsgi.MAX_HEADER_LINE = CONF.max_header_line
|
||||||
self.pool = eventlet.GreenPool(threads)
|
self.pool = eventlet.GreenPool(threads)
|
||||||
self.name = name
|
self.name = name
|
||||||
self._launcher = None
|
self._launcher = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user