diff --git a/gns3server/web/route.py b/gns3server/web/route.py index 875298f5..f376b820 100644 --- a/gns3server/web/route.py +++ b/gns3server/web/route.py @@ -161,6 +161,11 @@ class Route(object): response = Response(request=request, route=route) response.set_status(408) response.json({"message": "Client disconnected", "status": 408}) + except ConnectionResetError: + log.error("Client connection reset") + response = Response(request=request, route=route) + response.set_status(408) + response.json({"message": "Connection reset", "status": 408}) except Exception as e: log.error("Uncaught exception detected: {type}".format(type=type(e)), exc_info=1) response = Response(request=request, route=route)