summaryrefslogtreecommitdiffstats
path: root/nova/service.py
diff options
context:
space:
mode:
authorBurt Holzman <burt@fnal.gov>2013-01-24 00:24:09 -0600
committerBurt Holzman <burt@fnal.gov>2013-01-24 17:11:10 -0600
commitdfec46ac8e4cba23da842698c2bc746c03994afe (patch)
tree96209b11f99fd93835f6952d8aae40b6ee081eaa /nova/service.py
parent33680e6b2d2026ae8394579586f02d9773649674 (diff)
downloadnova-dfec46ac8e4cba23da842698c2bc746c03994afe.tar.gz
nova-dfec46ac8e4cba23da842698c2bc746c03994afe.tar.xz
nova-dfec46ac8e4cba23da842698c2bc746c03994afe.zip
Increase maximum URI size for EC2 API to 16k
The EC2 API supports both HTTP GET and POST agnostically. It also supports user-data of 16k -- meaning that client tools could generate 16k URIs. The WSGI default limit is 8k; this raises it. Fixes bug 1098646. Change-Id: Idec460d88b2affab970c9d9f39fa61295db035c5
Diffstat (limited to 'nova/service.py')
-rw-r--r--nova/service.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/nova/service.py b/nova/service.py
index 87857f93d..c250673f4 100644
--- a/nova/service.py
+++ b/nova/service.py
@@ -574,7 +574,7 @@ class Service(object):
class WSGIService(object):
"""Provides ability to launch API from a 'paste' configuration."""
- def __init__(self, name, loader=None, use_ssl=False):
+ def __init__(self, name, loader=None, use_ssl=False, max_url_len=None):
"""Initialize, but do not start the WSGI server.
:param name: The name of the WSGI server given to the loader.
@@ -594,7 +594,8 @@ class WSGIService(object):
self.app,
host=self.host,
port=self.port,
- use_ssl=self.use_ssl)
+ use_ssl=self.use_ssl,
+ max_url_len=max_url_len)
# Pull back actual port used
self.port = self.server.port
self.backdoor_port = None