]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Raise max header size to accommodate large tokens.
authorShao Kai Li <lshaokai@cn.ibm.com>
Thu, 2 Jan 2014 05:51:41 +0000 (00:51 -0500)
committerShao Kai Li <lshaokai@cn.ibm.com>
Fri, 3 Jan 2014 02:20:09 +0000 (21:20 -0500)
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

cinder/wsgi.py

index 0f64bbb2c4d71aa84455a453ccddc7eb617b87a6..bc41b61acd84ad073a5c1efb8c28674cbd1fa63a 100644 (file)
@@ -67,6 +67,9 @@ CONF.register_opts(socket_opts)
 
 LOG = logging.getLogger(__name__)
 
+# Raise the default from 8192 to accommodate large tokens
+eventlet.wsgi.MAX_HEADER_LINE = 16384
+
 
 class Server(object):
     """Server class to manage a WSGI server, serving a WSGI application."""