]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api_controller.rb
Remove old code to exit after 10000 requests as the memory limit code
[rails.git] / app / controllers / api_controller.rb
index ca4cbcbd7c3439304a6ed38179c25c6fb2ad6bfa..855e05888cddf1ee189b899482de5ac3e00fdd6f 100644 (file)
@@ -7,9 +7,6 @@ class ApiController < ApplicationController
   # Help methods for checking boundary sanity and area size
   include MapBoundary
 
-  #COUNT is the number of map requests to allow before exiting and starting a new process
-  @@count = COUNT
-
   # The maximum area you're allowed to request, in square degrees
   MAX_REQUEST_AREA = APP_CONFIG['max_request_area']
 
@@ -73,13 +70,6 @@ class ApiController < ApplicationController
       trkseg << point.to_xml_node()
     end
 
-    #exit when we have too many requests
-    if @@count > MAX_COUNT
-      render :text => doc.to_s, :content_type => "text/xml"
-      @@count = COUNT
-      exit!
-    end
-
     response.headers["Content-Disposition"] = "attachment; filename=\"map.osm\""
 
     render :text => doc.to_s, :content_type => "text/xml"
@@ -206,13 +196,6 @@ class ApiController < ApplicationController
     response.headers["Content-Disposition"] = "attachment; filename=\"map.osm\""
 
     render :text => doc.to_s, :content_type => "text/xml"
-    
-    #exit when we have too many requests
-    if @@count > MAX_COUNT
-      @@count = COUNT
-      
-      exit!
-    end
   end
 
   # Get a list of the tiles that have changed within a specified time