Add a 30 second timeout to all data browser requests to avoid attempts

to browse very large and/or complicated objects blocking other requests.
This commit is contained in:
Tom Hughes 2010-01-07 16:09:44 +00:00
parent 1374a7ef10
commit e0e849c91c
3 changed files with 35 additions and 9 deletions

View file

@ -0,0 +1,9 @@
<%
browse_timeout_type = {
'node' => I18n.t('browse.timeout.type.node'),
'way' => I18n.t('browse.timeout.type.way'),
'relation' => I18n.t('browse.timeout.type.relation'),
'changeset' => I18n.t('browse.timeout.type.changeset'),
};
%>
<p><%= t'browse.timeout.sorry', :type=> browse_timeout_type[@type] , :id => params[:id] %></p>