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:
parent
1374a7ef10
commit
e0e849c91c
3 changed files with 35 additions and 9 deletions
9
app/views/browse/timeout.html.erb
Normal file
9
app/views/browse/timeout.html.erb
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue