Fix wsgi bug

Today we cannot exit normally from glare app.
This patch should fix that.

Change-Id: Icd236bd995ef3b391a95a2a9a5f2bdd068d0902b
This commit is contained in:
Idan Narotzki 2017-08-22 11:54:28 +00:00
parent 515cae2bad
commit 0626284d54

View File

@ -433,7 +433,7 @@ class Server(object):
keepalive=CONF.http_keepalive,
socket_timeout=self.client_socket_timeout)
except socket.error as err:
if err[0] != errno.EINVAL:
if err.args[0] != errno.EINVAL:
raise
# waiting on async pools