Skip to content
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ The export server can also be used as a node module to simplify integrations:
* `initialWorkers` (default 5) - initial worker process count
* `workLimit` (default 50) - how many task can be performed by a worker process before it's automatically restarted
* `queueSize` (default 5) - how many request can be stored in overflow count when there are not enough workers to handle all requests
* `timeoutThreshold` (default 3500) - the maximum allowed time for each export job execution, in milliseconds. If a worker has been executing a job for longer than this period, it will be restarted
* `killPool()`: kill the phantom processes

## Using Ajax in Injected Resources
Expand Down
2 changes: 1 addition & 1 deletion lib/phantompool.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ function init(config) {

settings = {
queueSize: config.queueSize || 5,
timeoutThreshold: 3500,
timeoutThreshold: config.timeoutThreshold || 3500,
maxWorkers: config.maxWorkers || 8,
initialWorkers: config.initialWorkers || config.maxWorkers || 8,
worker: config.worker || __dirname + '/../phantom/worker.js',
Expand Down