Exception non catched when http service managed is not working

Bug #684771 reported by Pablo Saavedra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
COMODA
Status tracked in Trunk
Trunk
Fix Released
Critical
Pablo Saavedra

Bug Description

COMODA show a non catched exception when you try to do any action on a http service which is not up in the moment.

The exception should be managed by the model/view.

Related branches

Revision history for this message
Pablo Saavedra (saavedra-pablo) wrote :

Similar case occurs when you're trying to exec any action on a service which is not running. For example: Try to execute any query using SSH agent and the service needed for getting a response is not in execution.

Changed in comoda:
assignee: nobody → Pablo Saavedra (saavedra-pablo)
summary: - Exception non cachted when http service managed is not working
+ Exception non cached when http service managed is not working
Revision history for this message
Pablo Saavedra (saavedra-pablo) wrote : Re: Exception non cached when http service managed is not working

If there isn't a conection with a concrete HTTP service, also we cannot access to admin_aka_httpservice (on admin backend)

Revision history for this message
Pablo Saavedra (saavedra-pablo) wrote :

[Errno 110] Connection timed out appear when we are making a query anything to the HTTP service.

We need implement some timeout mechanism to avoid this timeout.

Timeout must be set on settings.py file.

Changed in comoda:
importance: High → Critical
summary: - Exception non cached when http service managed is not working
+ Exception non catched when http service managed is not working
Revision history for this message
Pablo Saavedra (saavedra-pablo) wrote :

We can tunning the django project as follow:

  # Special settings
  import socket
  socket.setdefaulttimeout(5)

This lines would be added on settings.py file.

http://docs.python.org/library/socket.html#socket.setdefaulttimeout

Changed in comoda:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.