diff --git a/src/routes/graphs.js b/src/routes/graphs.js index 5537da961..8976d2650 100644 --- a/src/routes/graphs.js +++ b/src/routes/graphs.js @@ -16,6 +16,10 @@ function getGraphs(req, res, next) { delete req.headers['cookies']; req.url = url.format({ pathname: 'render', query: parsedUrl.query }); + // graphs may take very long to respond so we run into headers already sent issues quite often + // nginx still has a request timeout which can deal with this then. + req.clearTimeout(); + graphiteProxy(req, res, next); }