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
tags/2014.1.b2
Shao Kai Li 5 years ago
parent
commit
aa1ba1f017
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      cinder/wsgi.py

+ 3
- 0
cinder/wsgi.py View File

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

Loading…
Cancel
Save