git ssb

3+

cel / ssb-npm-registry



Commit cfa697cbb76fd170e9eef51c34caf01a57079e58

Prevent responses timing out

cel committed on 8/22/2018, 6:21:37 AM
Parent: c0e4c10915e9f7fb84c8c1d425f1c268f10a1709

Files changed

bootstrap/bin.jschanged
bootstrap/bin.jsView
@@ -377,8 +377,9 @@
377377 serveNpm1(req, res)
378378 }
379379
380380 function serve(req, res) {
381 + res.setTimeout(0)
381382 var p = URL.parse(req.url)
382383 if (p.pathname.startsWith('/npm/')) return serveNpm(req, res, p.pathname.substr(4))
383384 if (p.pathname.startsWith('/msg/')) return serveMsg(req, res, p.pathname.substr(5))
384385 if (p.pathname.startsWith('/blobs/get/')) return serveBlobsGet(req, res, p.pathname.substr(11))

Built with git-ssb-web