node's http server has a default timeout of 2min which is too short for build bot

This commit is contained in:
Johannes Zellner
2019-11-14 13:15:12 +01:00
parent 05c64dcbf2
commit 38928d63d6

View File

@@ -139,6 +139,9 @@ function start(callback) {
gHttpServer = http.createServer(proxyServer);
gHttpServer.listen(constants.DOCKER_PROXY_PORT, '0.0.0.0', callback);
// Overwrite the default 2min request timeout. This is required for large builds for example
gHttpServer.setTimeout(60 * 60 * 1000);
debug(`startDockerProxy: started proxy on port ${constants.DOCKER_PROXY_PORT}`);
// eslint-disable-next-line no-unused-vars