From 967d6cd8890c9baf6ca3eaac51a2406aff8ae2e5 Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Mon, 3 Mar 2014 08:13:53 -0800 Subject: [PATCH] Let's try this without the request timeout middleware, to see if we still need that. --- server_setup.coffee | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/server_setup.coffee b/server_setup.coffee index 9d00188a7..ad23a6bf1 100644 --- a/server_setup.coffee +++ b/server_setup.coffee @@ -11,13 +11,14 @@ logging = require './server/commons/logging' config = require './server_config' ###Middleware setup functions implementation### -setupRequestTimeoutMiddleware = (app) -> - app.use (req, res, next) -> - req.setTimeout 15000, -> - console.log 'timed out!' - req.abort() - self.emit('pass',message) - next() +# 2014-03-03: Try not using this and see if it's still a problem +#setupRequestTimeoutMiddleware = (app) -> +# app.use (req, res, next) -> +# req.setTimeout 15000, -> +# console.log 'timed out!' +# req.abort() +# self.emit('pass',message) +# next() productionLogging = (tokens, req, res)-> status = res.statusCode @@ -32,7 +33,7 @@ productionLogging = (tokens, req, res)-> null setupExpressMiddleware = (app) -> - setupRequestTimeoutMiddleware app + #setupRequestTimeoutMiddleware app if config.isProduction express.logger.format('prod', productionLogging) app.use(express.logger('prod'))