Browse Source

Raise max header size to accommodate large tokens

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

Equivalent fixes have been proposed in other projects

Change-Id: Ic714166440e2aa08b619ab1e5e5e0cf3cea3e309
Closes-Bug: 1190149
Florent Flament 5 years ago
parent
commit
1690a739cd
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      glance/common/wsgi.py

+ 5
- 0
glance/common/wsgi.py View File

@@ -45,6 +45,11 @@ from glance.common import utils
45 45
 import glance.openstack.common.log as os_logging
46 46
 
47 47
 
48
+# Raise max HTTP header size to accommodate large tokens generated by Keystone
49
+# v3 API with big service catalogs.
50
+eventlet.wsgi.MAX_HEADER_LINE = 16384
51
+
52
+
48 53
 bind_opts = [
49 54
     cfg.StrOpt('bind_host', default='0.0.0.0',
50 55
                help=_('Address to bind the server.  Useful when '

Loading…
Cancel
Save