     resp.writeHead 200
     resp.end 'ok'
   else
+    total_connections   += 1
+    current_connections += 1
     url = Url.parse req.url
 
     four_oh_four = (msg) ->
+      decr()
       log msg
-      resp.writeHead 404, { }
-      resp.write "Not Found"
-      resp.end()
+      resp.writeHead 404
+      resp.end "Not Found"
 
     transferred_headers =
       'Via'                    : process.env.CAMO_HEADER_VIA or= "Camo Asset Proxy #{version}"

EXCLUDED_HOSTS = new RegExp(excluded.replace(".", "\\.").replace("*", "\\.*"))
RESTRICTED_IPS = /^(10\.)|(127\.)|(169\.254)|(192\.168)|(172\.(1[6-9])|(2[0-9])|(3[0-1]))/

server = Http.createServer (req, resp) ->
  if req.method != 'GET' || req.url == '/'
    resp.writeHead 200


            content_length  = srcResp.headers['content-length']

            if content_length > 5242880
              four_oh_four("Content-Length exceeded")
            else
              newHeaders =
