1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00

Handle HTTP 504 errors from compute node

Fix #1032
This commit is contained in:
Julien Duponchelle 2017-05-16 08:36:54 +02:00
parent ddc5e8169e
commit 39419462db
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -529,7 +529,7 @@ class Compute:
raise aiohttp.web.HTTPForbidden(text=msg)
elif response.status == 404:
raise aiohttp.web.HTTPNotFound(text="{} {} not found".format(method, path))
elif response.status == 408:
elif response.status == 408 or response.status == 504:
raise aiohttp.web.HTTPRequestTimeout(text="{} {} request timeout".format(method, path))
elif response.status == 409:
try: