diff options
| author | Sean Dague <sdague@linux.vnet.ibm.com> | 2012-03-21 14:46:09 -0400 |
|---|---|---|
| committer | Sean Dague <sdague@linux.vnet.ibm.com> | 2012-03-21 15:03:35 -0400 |
| commit | 0e0d0d54f2db4d534a2e450c4cdd88f41a5252ba (patch) | |
| tree | b3e90d729aa32fc846100430fb881129a1c31f37 /nova | |
| parent | f934beea9f22d8320d9b5ba9eb7051050c649122 (diff) | |
Modify nova.wsgi.start() should check backlog parameter.
Fixes bug 883292.
Forward ported from
https://github.com/ntt-pf-lab/nova/tree/openstack-qa-nova-883292
Change-Id: I8839851a72fcf0910a532d558ffe66a39a7db1e8
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/wsgi.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/wsgi.py b/nova/wsgi.py index 9204146ed..6bebaf08e 100644 --- a/nova/wsgi.py +++ b/nova/wsgi.py @@ -85,8 +85,12 @@ class Server(object): :param backlog: Maximum number of queued connections. :returns: None + :raises: nova.exception.InvalidInput """ + if backlog < 1: + raise exception.InvalidInput( + reason='The backlog must be more than 1') self._socket = eventlet.listen((self.host, self.port), backlog=backlog) self._server = eventlet.spawn(self._start) (self.host, self.port) = self._socket.getsockname() |
