Browse Source

Raise max header size to accommodate large tokens

The max header is exceeded in the following scenario
- Auth tokens built with a keystone v3 API catalog
- A catalog with approximately 8 or more endpoints defined

An equivalent fix will be required for all projects which use
eventlet.wsgi.

Copied from https://review.openstack.org/#/c/33362/

Closes-Bug: 1190149

Change-Id: I3fcb196b25a7a477b799c8dfa2ff5115977ca06d
(cherry picked from commit aa1ba1f017)
tags/2013.2.3
Shao Kai Li 5 years ago
parent
commit
5b9fc5c132
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      cinder/wsgi.py

+ 3
- 0
cinder/wsgi.py View File

@@ -69,6 +69,9 @@ CONF.register_opts(socket_opts)
69 69
 
70 70
 LOG = logging.getLogger(__name__)
71 71
 
72
+# Raise the default from 8192 to accommodate large tokens
73
+eventlet.wsgi.MAX_HEADER_LINE = 16384
74
+
72 75
 
73 76
 class Server(object):
74 77
     """Server class to manage a WSGI server, serving a WSGI application."""

Loading…
Cancel
Save