Skip to content

Commit

Permalink
Prevent timeout after 120sec; Fix phoboslab#75
Browse files Browse the repository at this point in the history
  • Loading branch information
phoboslab committed Mar 23, 2016
1 parent f1e0a3d commit 9fe9973
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stream-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9fe9973

Please sign in to comment.