Skip to content

Commit

Permalink
timeout configuration parameter for REST api
Browse files Browse the repository at this point in the history
  • Loading branch information
Freddy Vega committed Sep 8, 2016
1 parent 7c89936 commit 24568e7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ common.parseConfig(function(){
common.cleanUpExecutions();
common.cleanUpUserStatus(function(){
var server = require('http').createServer(app);
server.setTimeout(parseInt(common.Config.DefaultTimeout));
server.listen(common.Config.AppServerPort, function(){
realtime.initSocket(server);
common.logger.log("Express server listening on port %d in %s mode", common.Config.AppServerPort, app.settings.env);
Expand Down
17 changes: 10 additions & 7 deletions properties.conf
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
[Agent]
AgentVersion=1.00.01
AgentVersion=2.40.20
AgentPort=5009
AgentVNCPort=3006
Update=PASS
Update=
OS=Windows
CloudAgent=true

[Server]
ServerVersion=
ServerVersion=2.40.20
DBPort=27017
AppServerPort=3000
AppServerIPHost=localhost
AppServerIPHost22=10.130.10.35
AppServerIPHost22=192.168.10.107
AppServerIPHost=127.0.0.1
# Default timeout for REST API in Milliseconds
DefaultTimeout=1200000

[Windows]
VNC=Yes
AppShortcutFolderName=RedwoodHQ

0 comments on commit 24568e7

Please sign in to comment.