Commit cfa697cbb76fd170e9eef51c34caf01a57079e58
Prevent responses timing out
cel committed on 8/22/2018, 6:21:37 AMParent: c0e4c10915e9f7fb84c8c1d425f1c268f10a1709
Files changed
bootstrap/bin.js | changed |
bootstrap/bin.js | ||
---|---|---|
@@ -377,8 +377,9 @@ | ||
377 | 377 … | serveNpm1(req, res) |
378 | 378 … | } |
379 | 379 … | |
380 | 380 … | function serve(req, res) { |
381 … | + res.setTimeout(0) | |
381 | 382 … | var p = URL.parse(req.url) |
382 | 383 … | if (p.pathname.startsWith('/npm/')) return serveNpm(req, res, p.pathname.substr(4)) |
383 | 384 … | if (p.pathname.startsWith('/msg/')) return serveMsg(req, res, p.pathname.substr(5)) |
384 | 385 … | if (p.pathname.startsWith('/blobs/get/')) return serveBlobsGet(req, res, p.pathname.substr(11)) |
Built with git-ssb-web