X-Git-Url: http://git.pjr.cc/?p=nodejs-repoproxy.git;a=blobdiff_plain;f=lib%2Fcache.js;h=464c1b305108e80032aacfe8e62aba2509573017;hp=4f98d3c8e32b80e986d8a98fddd92df7509614e4;hb=e03ba0bc17312d19afba035295d9b10049b10cb7;hpb=9ce3e2a4e56f91fdc7d6295d3d064f2739955404 diff --git a/lib/cache.js b/lib/cache.js index 4f98d3c..464c1b3 100644 --- a/lib/cache.js +++ b/lib/cache.js @@ -103,10 +103,8 @@ function getAndService(unify, xpath, filesize) { log.debug("calling in here with filesize, ", filesize) unify.b.writeHead(200, {'Content-Length' : filesize}); - global.repoproxy.downloads[unify.fullFilePath] = 1; - http.get(xpath, function(res) { var file = fs.createWriteStream(unify.fullFilePath); @@ -193,7 +191,8 @@ function inlineService(unify) { } } } else { - log.debug("inline service - we're in a very bad place"); + log.error("inline service - we're in a very bad place, how we ended up here we dont know, but we need to crash"); + process.exit(10); } });