Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added keepAlive option. #290

Merged
merged 1 commit into from
Dec 30, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,17 @@ var defaultConfig = {
"hub" : null,
"logFile" : null,
"logLevel" : "INFO",
"logColor" : false
"logColor" : false,
"keepAlive" : false
},
config = {
"ip" : defaultConfig.ip,
"port" : defaultConfig.port,
"hub" : defaultConfig.hub,
"logFile" : defaultConfig.logFile,
"logLevel" : defaultConfig.logLevel,
"logColor" : defaultConfig.logColor
"logColor" : defaultConfig.logColor,
"keepAlive" : defaultConfig.keepAlive
},
logOutputFile = null,
logger = require("./logger.js"),
Expand Down
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ try {
router = new ghostdriver.RouterReqHand();

// Start the server
if (server.listen(ghostdriver.config.port, router.handle)) {
if (server.listen(ghostdriver.config.port, {"keepAlive": ghostdriver.config.keepAlive}, router.handle)) {
_log.info("Main", "running on port " + server.port);

// If a Selenium Grid HUB was provided, register to it!
Expand Down