From 9fe99739cc064fd3ec03bd903dabb6759a5a7f7e Mon Sep 17 00:00:00 2001 From: Dominic Szablewski Date: Thu, 24 Mar 2016 00:56:20 +0100 Subject: [PATCH] Prevent timeout after 120sec; Fix #75 --- stream-server.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stream-server.js b/stream-server.js index 7db51cb0..3905c6c3 100644 --- a/stream-server.js +++ b/stream-server.js @@ -50,6 +50,8 @@ var streamServer = require('http').createServer( function(request, response) { var params = request.url.substr(1).split('/'); if( params[0] == STREAM_SECRET ) { + response.connection.setTimeout(0); + width = (params[1] || 320)|0; height = (params[2] || 240)|0;